Community
Participate
Working Groups
I noticed the following code in FinalLaunchSequence: fCommandControl = fTracker.getService(IGDBControl.class); if (fCommandControl == null) { requestMonitor.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, -1, "Cannot obtain control service", null)); //$NON-NLS-1$ } fCommandFactory = fCommandControl.getCommandFactory(); The last line will NPE if fCommandControl is null.
Created attachment 177753 [details] Fix for HEAD Fix for HEAD which also merges three steps into a single one. This is better for our FinalLaunchSequence extendability effort. Committed to HEAD.
Created attachment 177754 [details] Fix for 7_0 Simpler fix for 7_0. Committed.
Elena, can you review?
*** cdt cvs genie on behalf of mkhouzam *** Bug 323996: Avoid potential NPE [*] FinalLaunchSequence.java 1.14 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java?root=Tools_Project&r1=1.13&r2=1.14 [*] FinalLaunchSequence.java 1.11.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/launching/FinalLaunchSequence.java?root=Tools_Project&r1=1.11.2.1&r2=1.11.2.2