This bug was originally marked as duplicate of bug 186297, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.
Build: NetBeans IDE Dev (Build 201103040000)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
GUEST: trying to debug .. debug failing to stop at breakpoints
GUEST: Don't know exactly when the problem occured.
GUEST: was viewing variables and then stopped debugging
GUEST: Debugging to wrong remote host.
GUEST: Debuging web application
GUEST: simply stopped debugging now -.-
artisan: running a unit test
phill84: deploying a webapp in tomcat
narve: Debugging my Swing GUI
GUEST: I was debugging and clicked the "STOP"-button when this error occured
GUEST: Stop debug program and see problem.
milinkp: I dont know when its comes.. Its happened when i try to execute the program ,
tbrunhoff: stepping through code (stepping out of a method).
mmirilovic: Switch to Loaded classes
GUEST: Hi, during a "Clean and build" the system showed me this problem... fortunately it hasn't crush the system.
GUEST: stopped debugging
GUEST: Noticed this after debugging my program
artisan: This happens once in while during testing.
Don't know to reproduce.
mmirilovic: Steps to reproduce:
- I had opened MemoryView project
- CLass breakpoint in group 'xxxx' and another line breakpoint inside constructor
- started debugger
- slected Breakpoint's group node 'xxx' and pushed 'Delete All' from context menu
- continue in debugging
java.lang.NullPointerException: Null child at index 7, parent: Root, model: org.netbeans.spi.viewmodel.Models$CompoundModel@14d7a8e
TreeModel = org.netbeans.spi.viewmodel.Models$DelegatingTreeModel@191c9a
NodeModel = org.netbeans.modules.cnd.debugger.common2.debugger.StackModel@1824964
TableModel = org.netbeans.spi.viewmodel.Models$DelegatingTableModel@186ef82
NodeActionsProvider = org.netbeans.spi.viewmodel.Models$DelegatingNodeActionsProvider@a4e97e
ColumnsModel = [org.netbeans.modules.cnd.debugger.common2.debugger.StackColumnModels$Number@a0849b, org.netbeans.modules.cnd.debugger.common2.debugger.StackColumnModels$Optimized@6217ee, org.netbeans.modules.cnd.debugger.common2.debugger.StackColumnModels$CurrentPC@113690, org.netbeans.modules.cnd.debugger.common2.debugger.StackCo
Created attachment 106724 [details]
This looks like org.netbeans.modules.cnd.debugger.common2.debugger.StackModel.getChildren() returned an array with a null element.
This could happen only when GdbDebuggerImpl.getStack() returns an array with a null element.
guiStackFrames array is initialized in setStackWithArgs() method and this method is called in a RequestProcessor thread. getStack() is called in AWT and there's no synchronization. Therefore it's possible that the AWT thread gets a partially initialized array in getStack() method.
*** Bug 196552 has been marked as a duplicate of this bug. ***
fixed in trunk:
showstopper, please verify fix in trunk
just my two cents - look at issue 196553 - it's similar and it's already fixed in 7.0
should not be marked as fixed until it is in release branch
Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Egor Ushakov <email@example.com>
Log: fixed #196318 (NPE in Stack view)
As nobody can verify the fix or reproduce a bug we can consider the fix as successful and push it into RC branch.
integrated into release70:
can not reproduce NPE in RC1 build 20110322.