nasa / MCT-Plugins

35 stars 29 forks source link

[Scenario] InvocationTargetException when Activities contain Cycle #115

Open VWoeltjen opened 10 years ago

VWoeltjen commented 10 years ago

Construct activities which have a cycle:

Try to view a Timeline View of a Timeline (or Scenario View of a Scenario) which contains Activity. An InvocationTargetException is thrown, due to an infinite loop at:

https://github.com/nasa/MCT-Plugins/blob/b8493bfdfa53361af146ff33b47a5732e7475451/scenario/src/main/java/gov/nasa/arc/mct/scenario/component/CostFunctionComponent.java#L135

It appears an ignore list is being maintained of active component ids, but a brief look over the code suggests this is not being checked anywhere.

VWoeltjen commented 10 years ago

Note that, while you cannot view this object, MCT as a whole continues to function normally in spite of this exception