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.
Build: NetBeans IDE Dev (Build 201110040601) VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Linux User Comments: gilbertoca: ctrl+I to seach for a class Stacktrace: java.lang.NullPointerException at org.openide.util.RequestProcessor$Processor.doNotify(RequestProcessor.java:2058) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
Created attachment 111548 [details] stacktrace
doNotify() is called from run() in the case of catching StackOverflowError or Throwable. What can be null in doNotify() in this case? Jesse, can you have a look?
private static void doNotify(RequestProcessor.Task todo, Throwable ex) { if (SLOW && todo.item != null && todo.item.message == null) { todo.item.message = "task failed due to: " + ex; // NPE here Since this build includes f463dddaea37 which is supposed to defend against an NPE here, I am guessing that the problem is a race condition: todo.item being set to null in another thread in between the second and third lines shown.
core-main #9f0f9ef9835c
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/9f0f9ef9835c User: Jesse Glick <jglick@netbeans.org> Log: #203162: NullPointerException at org.openide.util.RequestProcessor$Processor.doNotify