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.
[200508041800, JDK 1.5.0_04] I was editing java source file and used not yet declared variable. After finishing editing I got NullPointerException. Cursor was on the line with error. The exception was poping up periodically after closing the exc dialog every 2 sec. After I moved cursor on different line no exceptions were thrown, but only until I moved the cursor on the line with error. java.lang.NullPointerException at org.netbeans.modules.java.hints.CreateElementJavaHint.<init>(CreateElementJavaHint.java:32) at org.netbeans.modules.java.hints.CreateFieldJavaHint.<init>(CreateFieldJavaHint.java:38) at org.netbeans.modules.java.hints.JavaHintsProvider.handleUnresolvedHints(JavaHintsProvider.java:638)
Created attachment 23529 [details] exc stack trace
Please attach your source file. I cannot reproduce it.
Cannot reproduce it either now on the same source file.
Happening again on different source file now it's method call with not existing argument. If cursor is on the line exceptions keep poping up. The file is form file.
happend to me too. With non-existing method. Unable to reproduce when restarted IDE :(
*** Issue 62242 has been marked as a duplicate of this issue. ***
Also happening to me on linux. IMHO must be fixed for 4.2 (P3 -> P2). At least get rid of NPE should be easy enough, huh? ;)
Fixed. Checking in src/org/netbeans/modules/java/hints/JavaHintsProvider.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/JavaHintsProvider.java,v <-- JavaHintsProvider.java new revision: 1.39; previous revision: 1.38 done
Cannot reproduce in dev-200508171800. Verified.