Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException goal is null #103

Open
deschcla opened this issue Mar 10, 2023 · 1 comment
Open

NullPointerException goal is null #103

deschcla opened this issue Mar 10, 2023 · 1 comment

Comments

@deschcla
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants