1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[228148] Fixed an NPE exposed by timing changes in services initialization.

This commit is contained in:
Pawel Piech 2008-04-22 05:09:50 +00:00
parent 0d04616e1d
commit ca383d57de

View file

@ -56,7 +56,7 @@ public abstract class DsfCommandRunnable extends DsfRunnable {
}
if (getContext() == null) {
fRequest.setStatus(makeError("Selected object does not support run control.", null)); //$NON-NLS-1$
} else if (getRunControl() == null) {
} else if (getRunControl() == null || getStepQueueMgr() == null) {
fRequest.setStatus(makeError("Run Control not available", null)); //$NON-NLS-1$
} else {
doExecute();