-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Potential call to null.equals(null) in JSONObject. #62
Comments
Please show me how this can potentially raise a NullPointerException:
|
Sorry, you're right, it can't; but in the case where value is null, the second check (
|
Don't be filing bugs in your code against me. |
testcase for stleary#292
Both
valueToString
andwriteValue
have method calls of the formvalue.equals(null)
. If value is equal tonull
then a call tonull.equals(null)
is going to fail with aNullPointerException
.The text was updated successfully, but these errors were encountered: