1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

[266824] [source lookup] NPE in DsfSourceDisplayAdapter without SteppingController

This commit is contained in:
Anton Leherbauer 2009-03-03 13:14:32 +00:00
parent d02a227446
commit a2fa29fcd3

View file

@ -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;
}