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 196589

Summary: NullPointerException at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.NativeBreakpoint.addAnnotation
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: DebuggerAssignee: Egor Ushakov <gorrus>
Status: VERIFIED FIXED    
Severity: normal CC: jocke, mortennobel, vkvashin
Priority: P1    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 177478
Bug Depends on: 196542    
Bug Blocks:    
Attachments: stacktrace
stacktrace
stacktrace

Description Vladimir Voskresensky 2011-03-11 13:30:04 UTC
Build: NetBeans IDE Dev (Build 110311-f6a507171ede)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP

User Comments:
vv159170: setting breakpoint in quote.cc of full remote project without started debugger session




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.NativeBreakpoint.addAnnotation(NativeBreakpoint.java:1810)
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.NativeBreakpoint.seedToplevelAnnotations(NativeBreakpoint.java:1907)
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.Handler.postNewHandler(Handler.java:257)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.ToggleBreakpointActionProvider.doAction(ToggleBreakpointActionProvider.java:177)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.NativeActionsProvider.postAction(NativeActionsProvider.java:80)
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.ToggleBreakpointActionProvider.postAction(ToggleBreakpointActionProvider.java:84)
Comment 1 Vladimir Voskresensky 2011-03-11 13:30:09 UTC
Created attachment 106911 [details]
stacktrace
Comment 2 mortennobel 2011-03-12 16:39:49 UTC
Created attachment 106935 [details]
stacktrace

I was browing some sourcecode. I may have held ctrl-down while using a scroll guesture (two finger scroll on MacBook)
Comment 3 Exceptions Reporter 2011-03-13 01:45:54 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=177478
Comment 4 jocke 2011-03-14 10:37:01 UTC
Created attachment 106971 [details]
stacktrace

toggle breakpoint
Comment 5 Egor Ushakov 2011-03-14 11:11:37 UTC
fixed in trunk:
http://hg.netbeans.org/cnd-main/rev/92d08a54da68
Comment 6 Egor Ushakov 2011-03-14 11:12:22 UTC
Vladimir, please review
Comment 7 Alexander Pepin 2011-03-14 14:43:49 UTC
verified in dev build #4962.
Comment 8 Egor Ushakov 2011-03-14 15:26:49 UTC
extra checks in:
http://hg.netbeans.org/cnd-main/rev/8faf38167e4b
Comment 9 Egor Ushakov 2011-03-14 15:28:29 UTC
code changes were made during the review, please verify again
Comment 10 Vladimir Kvashin 2011-03-14 15:43:23 UTC
I reviewed the fixes, I believe they are correct and safe.
Comment 11 Quality Engineering 2011-03-15 09:47:28 UTC
Integrated into 'main-golden', will be available in build *201103150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/92d08a54da68
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #196589 (NPE in NativeBreakpoint.addAnnotation)
Comment 12 Egor Ushakov 2011-03-15 10:16:36 UTC
waiting for bug 196542 to be integrated into release
Comment 13 Alexander Pepin 2011-03-15 14:15:19 UTC
verified in dev build #4974
Comment 15 Alexander Pepin 2011-03-18 11:32:15 UTC
verified in RC1 build 20110317
Comment 16 Quality Engineering 2017-04-08 03:08:57 UTC
Integrated into 'main-silver', will be available in build *201704080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/98e2ecc453e4
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #196589 (NPE in NativeBreakpoint.addAnnotation)