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,7 +221,10 @@ public abstract class AbstractThreadVMNode extends AbstractDMVMNode
} }
protected void fillExecutionDataProperties(IPropertiesUpdate update, IExecutionDMData data) { protected void fillExecutionDataProperties(IPropertiesUpdate update, IExecutionDMData data) {
update.setProperty(ILaunchVMConstants.PROP_STATE_CHANGE_REASON, data.getStateChangeReason().name()); StateChangeReason reason = data.getStateChangeReason();
if (reason != null) {
update.setProperty(ILaunchVMConstants.PROP_STATE_CHANGE_REASON, data.getStateChangeReason().name());
}
} }
@Override @Override

View file

@ -98,6 +98,12 @@ public interface IRunControl extends IDsfService
* Display information for an execution context. * Display information for an execution context.
*/ */
public interface IExecutionDMData extends IDMData { 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(); StateChangeReason getStateChangeReason();
} }