Community
Participate
Working Groups
There's a couple of issues. 1. DsfTerminateCommand.canExecute() assumes that IProcesses.canTerminate() is successful and returns a data object (a Boolean). It should assume neither. This is where the NPE happens (due to # 2) 2. Boolean properties in the EDC Run Control context should have implicit default values. Returning a null Boolean object to a requester doesn't make a lot of sense to me.
Created attachment 180001 [details] fix
Committed to HEAD. Ken, please review.
*** cdt cvs genie on behalf of jcortell *** Bug 326716: NPE in EDC's DsfTerminateCommand handling [*] RunControl.java 1.38 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/services/dsf/RunControl.java?root=Tools_Project&r1=1.37&r2=1.38 [*] DsfTerminateCommand.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc.ui/src/org/eclipse/cdt/debug/edc/internal/ui/DsfTerminateCommand.java?root=Tools_Project&r1=1.3&r2=1.4
+1 Nice cleanup.