pellierd / pddl4j

PDDL4J is an open source library under LGPL license whose purpose of PDDL4J is to facilitate the development of JAVA tools for Automated Planning based on PDDL language (Planning Domain Description Language).
https://lig-membres.imag.fr/pellier/
GNU Lesser General Public License v3.0
143 stars 65 forks source link

NullPointerException goal is null #103

Open deschcla opened 1 year ago

deschcla commented 1 year ago

Hello, I have a NullPointerException with my problem and my domain which seems to me correct. The error is : java.lang.NullPointerException: Cannot invoke "fr.uga.pddl4j.problem.operator.Condition.cardinality()" because the return value of "fr.uga.pddl4j.heuristics.state.AbstractStateHeuristic.getGoal()" is null However I have a goal in my problem file.

Here the pddl files : domain.pddl.txt p01.pddl.txt

pellierd commented 1 year ago

Are you sure that your goal is reachable ? If no actions can produce your goal, the goal is not reachable and set to null. You can used the command line option "-l ALL" to have the traces produce within the instantiation process and check if an action produce you goal.