-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
JsonTreeWriter.put(): IllegalStateException #1592
Comments
Can you provide more detail on how to reproduce the issue? |
public void testNullStringNameInSuperClass() throws IOException { public void testNullStringName() throws IOException {
|
(Note: your reply has the response in code ticks, while the code is in normal text formatting - it's switched around for some reason) I'll look more at the relevant areas of the code and most likely make a pull request; I agree that it makes sense for the behavior here to be consistent with the superclass unless there is a demonstrable use case in which the inconsistent behavior is necessary. |
adding null parameter check to name(), fixing the issue and being consistent with superclass behavior
It's fine to fix it and it‘s very nice to commit it quickly. I‘ll close the issue for solving. |
adding null parameter check to name(), fixing the issue and being consistent with superclass behavior
adding null parameter check to name(), fixing the issue and being consistent with superclass behavior
After calling JsonTreeWriter.name(null), calling JsonTreeWriter.vule() will cause JsonTreeWriter.put(): IllegalStateException because of internal calling JsonTreeWriter.put(). So why not check if the param of name() is null? The check is done in super class!
The text was updated successfully, but these errors were encountered: