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 237613

Summary: NullPointerException at org.netbeans.modules.odcs.tasks.query.ODCSQuery$1.run
Product: connecteddeveloper Reporter: Ondrej Vrabec <ovrabec>
Component: ODCS TasksAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204877
Attachments: stacktrace

Description Ondrej Vrabec 2013-10-24 10:39:22 UTC
This issue was reported manually by ovrabec.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20131024-6a3c940f2a8f)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
ovrabec: Started IDE and opened super master mega menu for ODCS.
... this happens because the same query is run in parellel twice. First it's started from the MM and then at the same time from the Task Dashboard. Debugging reveals that there are two instances of ODCSQueryController for the single instance of the query.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.odcs.tasks.query.ODCSQuery$1.run(ODCSQuery.java:307)
   at org.netbeans.modules.odcs.tasks.query.ODCSQuery.executeQuery(ODCSQuery.java:342)
   at org.netbeans.modules.odcs.tasks.query.ODCSQuery.refreshIntern(ODCSQuery.java:282)
   at org.netbeans.modules.odcs.tasks.query.ODCSQuery$PredefinedQuery.refresh(ODCSQuery.java:593)
   at org.netbeans.modules.odcs.tasks.query.ODCSQueryController$QueryTask.run(ODCSQueryController.java:1088)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
Comment 1 Ondrej Vrabec 2013-10-24 10:39:24 UTC
Created attachment 141511 [details]
stacktrace
Comment 2 Ondrej Vrabec 2013-10-24 10:52:55 UTC
fix: http://hg.netbeans.org/core-main/rev/34fc35e4cbf8