mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
[266824] [source lookup] NPE in DsfSourceDisplayAdapter without SteppingController
This commit is contained in:
parent
d02a227446
commit
a2fa29fcd3
1 changed files with 4 additions and 3 deletions
|
@ -318,14 +318,15 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
|
|||
IExecutionDMContext.class);
|
||||
|
||||
IRunControl runControl = fServicesTracker.getService(IRunControl.class);
|
||||
rm.setData(runControl != null && execCtx != null &&
|
||||
(fController.getPendingStepCount(execCtx) != 0 || runControl.isStepping(execCtx)));
|
||||
rm.setData(runControl != null && execCtx != null
|
||||
&& (fController != null && fController.getPendingStepCount(execCtx) != 0
|
||||
|| runControl.isStepping(execCtx)));
|
||||
rm.done();
|
||||
}
|
||||
};
|
||||
|
||||
try {
|
||||
fController.getExecutor().execute(delaySelectionChangeQuery);
|
||||
fExecutor.execute(delaySelectionChangeQuery);
|
||||
} catch (RejectedExecutionException e) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue