You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
object.property throws null pointer exception when object is defined and there is no property.
Ideally it should not throw an exception instead return null or undefined.
example:
let obj = {a: 1, b: 2} is present in the context
and when I try to evaluate the expression like "obj.c == 3 ? true : false" it throws null pointer exception.
I can see nullSafeNavigation is false for me. is there a way I can make it true so that it returns null.
The text was updated successfully, but these errors were encountered:
I had that problem too. What I had to do is to manually check for the property before its evaluation and set obj.c = null.
This library still has a lot of things to improve. But it seems pretty dead :/
object.property throws null pointer exception when object is defined and there is no property.
Ideally it should not throw an exception instead return null or undefined.
example:
let obj = {a: 1, b: 2} is present in the context
and when I try to evaluate the expression like "obj.c == 3 ? true : false" it throws null pointer exception.
I can see nullSafeNavigation is false for me. is there a way I can make it true so that it returns null.
The text was updated successfully, but these errors were encountered: