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 - NullPointerException at org.netbeans.modules.javahints.UnusedAssignmentOrBranch.run
Summary: NullPointerException at org.netbeans.modules.javahints.UnusedAssignmentOrBran...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 18:32 UTC by asmotrich
Modified: 2011-04-12 12:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178264


Attachments
stacktrace (875 bytes, text/plain)
2011-04-11 18:32 UTC, asmotrich
Details

Note You need to log in before you can comment on or make changes to this bug.
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)