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

NPE with negative conditions #100

Open
fdouglis opened this issue Feb 10, 2023 · 0 comments
Open

NPE with negative conditions #100

fdouglis opened this issue Feb 10, 2023 · 0 comments

Comments

@fdouglis
Copy link

I tried creating a domain using negative conditions. After getting past the lex error due to failing to include the spec, I hit a null pointer exception:

	at fr.uga.pddl4j.problem.FinalizedProblem.extractRelevantFluents(FinalizedProblem.java:373)
	at fr.uga.pddl4j.problem.DefaultProblem.finalization(DefaultProblem.java:299)
...```

If I add a system print to just before this, it is clear it is tripping over  `(not (6 4 2))`.  It gets a null `exp.getSymbol()`.  I tried a band-aid: only insert to to `this.numericFluents` if non-null, but that has other cascaded errors because the length of the fluents no longer is as expected.  

Ring any bells?  

I can post an example, but first I would need to sanitize it somehow, so first I want to see if this is a known issue.  
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

1 participant