This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 162991 [details] screenshot This code throws NPE. But debugger watch window show 'false' public class ClassTest { public static short myConst = 1; public static Short getValue() { return null; } public static void main(String[] args) { if (getValue()==myConst) { //This string throws NPE because unboxing getValue give us null System.out.println("OK"); } } }
Reproduced.
Fixed by changeset: 302088:f6ae9ddea792
Transplanted to release82: http://hg.netbeans.org/releases/rev/5382bb35d91e
Created attachment 163221 [details] Is >< better value now? What did change with this fix? xtron, can you please verify this? Thanks.
I think it should be text of real NullPointerException like: Exception occurred in target VM: java.lang.NullPointerException: <stacktrace>