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 245688

Summary: NullPointerException at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getOwnedMonitors
Product: debugger Reporter: markiewb
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: markiewb
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 210710
Attachments: stacktrace
stacktrace

Description markiewb 2014-07-15 11:37:34 UTC
Build: NetBeans IDE Dev (Build 201407090001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
markiewb: Stepping within java code




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getOwnedMonitors(CallStackFrameImpl.java:965)
   at org.netbeans.modules.debugger.jpda.ui.models.DebuggingMonitorModel$Children.getChildren(DebuggingMonitorModel.java:273)
   at org.netbeans.modules.debugger.jpda.ui.models.DebuggingTreeModel.computeChildren(DebuggingTreeModel.java:151)
   at org.netbeans.modules.debugger.jpda.ui.models.CachedChildrenTreeModel.getChildren(CachedChildrenTreeModel.java:103)
   at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:1795)
   at org.netbeans.modules.debugger.jpda.js.frames.models.DebuggingJSFramesInJavaModelFilter.getChildren(DebuggingJSFramesInJavaModelFilter.java:96)
Comment 1 markiewb 2014-07-15 11:37:35 UTC
Created attachment 148063 [details]
stacktrace
Comment 2 markiewb 2014-07-18 13:04:26 UTC
Created attachment 148138 [details]
stacktrace

First debugging session ended with Debugging-Exception.
Then I tried to attach the debugger to the same process. That worked.
BUT when a breakpoint is hit now, then this exception will be thrown
Comment 3 Martin Entlicher 2014-07-21 13:46:43 UTC
Fixed by changeset:   276328:501feec7d3dd
http://hg.netbeans.org/core-main/rev/501feec7d3dd
Comment 4 Quality Engineering 2014-07-23 02:08:02 UTC
Integrated into 'main-silver', will be available in build *201407230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/501feec7d3dd
User: mentlicher@netbeans.org
Log: #245688: Do not return null monitor info elements.