Can't add a state to a chance node

Issue #330 resolved
Iago París created an issue

In the domain tab of node properties, the button add doesn't have any effect.

Reproduce it by:

  1. Creating an influence diagram

  2. Then a decision node

  3. Then linking him a chance node as a child

  4. Opening node properties of the chance child node

  5. Add button has no effect

Tweak:

If you need 3 or 4 states only, using standard domains and renaming does the trick

OM version:

org.openmarkov.full-0.3.0-20180618.133613-68

Head of traceback:

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
at org.openmarkov.core.action.NodeStateEdit.<init>(NodeStateEdit.java:114)
at org.openmarkov.gui.component.DiscretizeTablePanel.actionPerformedAddValue(DiscretizeTablePanel.java:860)
at org.openmarkov.gui.dialog.common.KeyTablePanel.actionPerformed(KeyTablePanel.java:356)
at org.openmarkov.gui.component.DiscretizeTablePanel.actionPerformed(DiscretizeTablePanel.java:835)

Comments (3)

  1. Log in to comment