Community
Participate
Working Groups
If you're running a simple junit test method (or class) where there is no debug session (say you're just testing a set of utilities), then the debug platform plugins don't get loaded. However, GdbPlugin.shutdownActiveLaunches() assumes they have and causes an NPE. A simple reference check is needed to avoid the NPE.
Created attachment 187233 [details] Fix Committed to HEAD (trivial fix; no review requested)
*** cdt cvs genie on behalf of jcortell *** Bug 334940: NPE in GdbPlugin.shutdownActiveLaunches() during simple junit tests [*] GdbPlugin.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/internal/GdbPlugin.java?root=Tools_Project&r1=1.3&r2=1.4
Should this be marked as fixed?
Fixed.