-
Notifications
You must be signed in to change notification settings - Fork 5
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
NPE with null values #28
Comments
In this modified version, before invoking the equals() method, it first checks if either thisValue or otherValue is null. If both values are null, they are considered equal, and the loop proceeds to the next key. If either value is null or the values are not equal, the method returns false. By including the null check, you can prevent the NullPointerException from occurring when comparing values that can be null. |
@shivam-sharma7 do you want to open a PR to fix this issue? |
@johnaohara I'm not sure about this. What you thing about the code? |
yaup/src/main/java/io/hyperfoil/tools/yaup/json/Json.java
Line 1222 in 92b1cc3
This line fails with NPE if the value is
null
.The text was updated successfully, but these errors were encountered: