There is a part of our application that does this ...
int x = DOM.getElementById("x").getPropertyInt("value"); int y = DOM.getElementById("y").getPropertyInt("value"); int w = DOM.getElementById("w").getPropertyInt("value"); int h = DOM.getElementById("h").getPropertyInt("value");
Each call to DOM.getElemendById("something") returns null (which I expect when I deleted them), but a call to .getPropertyInt("value") to return a null does not throw a NullPointerException. In dev mode, I can execute all these statements and observe that x, y, w, h are all assigned to zero. If I evaluate one of these statements in Intellij analytics in the debugger, a NullPointerException is thrown.
Doesn't that seem a little crazy for anyone else?
source share