Line in VariableEliminationCore throws NullPointerException

Issue #304 resolved
Manuel Luque created an issue

The code line:

utility = new TablePotential(null);

in method "getUtility()" of class VariableEliminationCore invokes the constructor "TablePotential(TablePotential potential)", which invokes the constructor "Potential (Potential potential)", which always throws NullPointerException in the code line:

this(potential.getVariables(), potential.getPotentialRole());

Comments (3)

  1. Manuel Luque reporter

    I have fixed this issue by replacing above line with the next code:

    utility = new TablePotential(null,PotentialRole.UNSPECIFIED);

  2. Log in to comment