1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +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); IExecutionDMContext.class);
IRunControl runControl = fServicesTracker.getService(IRunControl.class); IRunControl runControl = fServicesTracker.getService(IRunControl.class);
rm.setData(runControl != null && execCtx != null && rm.setData(runControl != null && execCtx != null
(fController.getPendingStepCount(execCtx) != 0 || runControl.isStepping(execCtx))); && (fController != null && fController.getPendingStepCount(execCtx) != 0
|| runControl.isStepping(execCtx)));
rm.done(); rm.done();
} }
}; };
try { try {
fController.getExecutor().execute(delaySelectionChangeQuery); fExecutor.execute(delaySelectionChangeQuery);
} catch (RejectedExecutionException e) { } catch (RejectedExecutionException e) {
return false; return false;
} }