Skip to content

Fix null comparison error#16

Open
zupat wants to merge 1 commit into
asapJ:masterfrom
zupat:patch-1
Open

Fix null comparison error#16
zupat wants to merge 1 commit into
asapJ:masterfrom
zupat:patch-1

Conversation

@zupat

@zupat zupat commented Jan 7, 2021

Copy link
Copy Markdown

The program would crash if null was passed to validateQuality because the null check was being done last. The comparison "null < 10" was done which resulted in the crash. Fixed by doing the null check first.

The program would crash if null was passed to validateQuality because the null check was being done last. The comparison "null < 10" was done which resulted in the crash. Fixed by doing the null check first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant