IndexOutOfBoundsException when changing the domain of a variable

Issue #262 resolved
Miguel Ángel Artaso Landa created an issue

There are some scenarios where when changing the domain of a variable an IndexOutOfBoundsException is raised. For example, this happens the "ID-decide-test" network, if you change the domain of 'Result of test' variable.

Comments (2)

  1. Miguel Ángel Artaso Landa reporter

    The 'VariableTypeEdit' class of the package 'org.openmarkov.core.action' was trying to assign a uniform potential to any non-utility child of the node whose domain was being altered, even in the case of the decision nodes with no potential at all. Now, the method setPotentialsNodeAndChildren only assigns the uniform potential if the child has a potential already.

  2. Log in to comment