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.

Bug 197628

Summary: NullPointerException at org.netbeans.modules.javahints.UnusedAssignmentOrBranch.run
Product: java Reporter: asmotrich <asmotrich>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal CC: asmotrich
Priority: P2    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 178264
Attachments: stacktrace

Description asmotrich 2011-04-11 18:32:29 UTC
Build: NetBeans IDE Dev (Build 201104110401)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02-334, Java(TM) SE Runtime Environment, 1.6.0_24-b07-334-10M3326
OS: Mac OS X

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javahints.UnusedAssignmentOrBranch.run(UnusedAssignmentOrBranch.java:94)
   at org.netbeans.modules.javahints.UnusedAssignmentOrBranch.run(UnusedAssignmentOrBranch.java:78)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:322)
   at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:715)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
Comment 1 asmotrich 2011-04-11 18:32:34 UTC
Created attachment 107647 [details]
stacktrace
Comment 2 asmotrich 2011-04-11 19:03:59 UTC
Happens during Java class editing and during other IDE operations, such as running a JUnit test class after editing. Makes IDE almost unusable since it happens almost every time something is happening with the source file.
Comment 3 Jan Lahoda 2011-04-12 12:47:43 UTC
This should fix that:
http://hg.netbeans.org/main/contrib/rev/48f170b54744
(updates for both Experimental Java Hints and Java Hints should be available on the update center fixing several bugs)