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 203162 - NullPointerException at org.openide.util.RequestProcessor$Processor.doNotify
Summary: NullPointerException at org.openide.util.RequestProcessor$Processor.doNotify
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-10-05 15:27 UTC by gilbertoca
Modified: 2011-11-03 15:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 181666


Attachments
stacktrace (200 bytes, text/plain)
2011-10-05 15:27 UTC, gilbertoca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gilbertoca 2011-10-05 15:27:14 UTC
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)
Comment 1 gilbertoca 2011-10-05 15:27:19 UTC
Created attachment 111548 [details]
stacktrace
Comment 2 Antonin Nebuzelsky 2011-10-18 14:20:31 UTC
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?
Comment 3 Jesse Glick 2011-11-01 22:09:42 UTC
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.
Comment 4 Jesse Glick 2011-11-01 22:13:12 UTC
core-main #9f0f9ef9835c
Comment 5 Quality Engineering 2011-11-02 15:18:04 UTC
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
Comment 6 Quality Engineering 2011-11-03 15:41:13 UTC
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