Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX Fixing .equals possible NPE #21

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

kanavtalwar
Copy link
Contributor

Please annotate your PR title to describe what the PR does, then give a brief bulleted description of your PR below. PR titles should begin with [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], or [CONTRIB]. If a new feature introduces breaking changes for the or configuration files, please also add [BREAKING].

Description

Changing call to equals method at various places to avoid possible NPE
if(input.equals(COMPARE_VALUE)) //hit NullPointerException if input is "null"

Changes Made

Refactored the variable.equals(CONSTANT) to CONSTANT.equals(variable)

Additional Notes

[Add any additional notes or context for the reviewer or future maintainers of this code.]

Thank you for submitting!

@kanavtalwar kanavtalwar requested a review from spensonshih April 19, 2024 16:42
@spensonshih spensonshih merged commit 9a7df09 into blackrock:main Apr 24, 2024
1 check passed
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.

2 participants