Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 196352 - NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbHandlerExpert.commandFormNew
NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbHandlerExpe...
Product: cnd
Classification: Unclassified
Component: Debugger
All All
: P3 (vote)
: 7.0.1
Assigned To: Egor Ushakov
EXCEPTIONS_REPORT, 701patch1-verified
Depends on:
  Show dependency treegraph
Reported: 2011-03-05 16:45 UTC by Vladimir Kvashin
Modified: 2017-04-08 03:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT

stacktrace (2.69 KB, text/plain)
2011-03-05 16:45 UTC, Vladimir Kvashin
stacktrace (3.66 KB, text/plain)
2011-08-08 09:00 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2011-03-05 16:45:43 UTC
Build: NetBeans IDE Dev (Build 110305-e2467b8d7ca8)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows XP

User Comments:
vkvashin: I was debugging full remote project on Windows,
clicked on gutter to set a breakpoint

   at org.netbeans.modules.cnd.debugger.gdb2.GdbHandlerExpert.commandFormNew(
   at org.netbeans.modules.cnd.debugger.common2.debugger.breakpoints.Handler.postNewHandler(
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.ToggleBreakpointActionProvider.doAction(
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.NativeActionsProvider.postAction(
   at org.netbeans.modules.cnd.debugger.common2.debugger.actions.ToggleBreakpointActionProvider.postAction(
   at org.netbeans.api.debugger.ActionsManager.postAction(
Comment 1 Vladimir Kvashin 2011-03-05 16:45:47 UTC
Created attachment 106748 [details]
Comment 2 Egor Ushakov 2011-06-17 15:40:27 UTC
this could happen if gdb was not started properly.
easy steps to reproduce:
- change gdb location in the toolchain to the incorrect one
- start debugging
it will end up in the endless "starting gdb"
- but the progress window is not modal, so you can go and try to set a line breakpoint and get the exception
Comment 3 Exceptions Reporter 2011-08-03 16:08:55 UTC
This bug already has 5 duplicates 
Comment 4 Vladimir Voskresensky 2011-08-04 16:09:29 UTC
occurred in hotspot dev
Comment 5 Vladimir Voskresensky 2011-08-04 16:10:12 UTC
hotspot by default is compiled in optimized mode and user does some clicks before can set real breakpoint
Comment 6 Exceptions Reporter 2011-08-08 09:00:32 UTC
Created attachment 109846 [details]
Comment 7 Egor Ushakov 2011-08-17 15:04:35 UTC
fixed in
Comment 8 Egor Ushakov 2011-08-17 15:17:46 UTC
please verify on elif
Comment 9 Quality Engineering 2011-08-18 13:52:00 UTC
Integrated into 'main-golden'
User: Egor Ushakov <>
Log: fixed #196352 (NPE in GdbHandlerExpert.commandFormNew)
Comment 10 dnikitin 2011-08-19 14:07:17 UTC
verified in NetBeans IDE 7.0.1 (Build oss-platform-build-23-on-20110818)
Comment 11 Alexander Simon 2011-08-24 11:57:43 UTC
integrated in release701_fixes:
105628ef851c transplanted to eb8bbc63bf7a 84915cc3965a
Comment 12 Quality Engineering 2011-08-25 04:28:00 UTC
Integrated into 'releases'
User: Egor Ushakov <>
Log: fixed #196352 (NPE in GdbHandlerExpert.commandFormNew)
(transplanted from 105628ef851c48a9acd91f787582a2b355b91338)
Comment 13 dnikitin 2011-08-30 11:29:14 UTC
verified in 7.0.1 patch
Comment 14 Quality Engineering 2011-09-26 13:29:08 UTC
Integrated into 'releases'
User: Egor Ushakov <>
Log: fixed #196352 (NPE in GdbHandlerExpert.commandFormNew)
Comment 15 Quality Engineering 2017-04-08 03:06:37 UTC
Integrated into 'main-silver', will be available in build *201704080002* on (upload may still be in progress)

User: Egor Ushakov <>
Log: fixed #196352 (NPE in GdbHandlerExpert.commandFormNew)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo