1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

[269196] - [run control] [non-stop] NPE when StateChangeReason of IExecutionDMData is null

This commit is contained in:
Pawel Piech 2009-03-18 15:24:23 +00:00
parent f3c35beabe
commit 48d2746e03
2 changed files with 10 additions and 1 deletions

View file

@ -221,8 +221,11 @@ public abstract class AbstractThreadVMNode extends AbstractDMVMNode
}
protected void fillExecutionDataProperties(IPropertiesUpdate update, IExecutionDMData data) {
StateChangeReason reason = data.getStateChangeReason();
if (reason != null) {
update.setProperty(ILaunchVMConstants.PROP_STATE_CHANGE_REASON, data.getStateChangeReason().name());
}
}
@Override
public void getContextsForEvent(VMDelta parentDelta, Object e, final DataRequestMonitor<IVMContext[]> rm) {

View file

@ -98,6 +98,12 @@ public interface IRunControl extends IDsfService
* Display information for an execution context.
*/
public interface IExecutionDMData extends IDMData {
/**
* Reason for the last change in execution state. Could be
* <code>null</code> if the service does not support tracking this
* information.
*/
StateChangeReason getStateChangeReason();
}