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:
parent
0d04616e1d
commit
ca383d57de
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ public abstract class DsfCommandRunnable extends DsfRunnable {
|
||||||
}
|
}
|
||||||
if (getContext() == null) {
|
if (getContext() == null) {
|
||||||
fRequest.setStatus(makeError("Selected object does not support run control.", null)); //$NON-NLS-1$
|
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$
|
fRequest.setStatus(makeError("Run Control not available", null)); //$NON-NLS-1$
|
||||||
} else {
|
} else {
|
||||||
doExecute();
|
doExecute();
|
||||||
|
|
Loading…
Add table
Reference in a new issue