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

Parsing Problem without Domain results in Exception #101

Open
tobiaswjohn opened this issue Feb 21, 2023 · 1 comment
Open

Parsing Problem without Domain results in Exception #101

tobiaswjohn opened this issue Feb 21, 2023 · 1 comment
Labels

Comments

@tobiaswjohn
Copy link

I am using version 4.0.0. I tried to parse a problem file with the method 'parseProblem(...)' (see documentation). I do not care for the domain in my application, so I did not parse any domain file. Doing this results in the following Exception:

java.lang.NullPointerException
at fr.uga.pddl4j.parser.Parser.checkDomainName(Parser.java:886)
at fr.uga.pddl4j.parser.Parser.parseProblem(Parser.java:357)
at fr.uga.pddl4j.parser.Parser.parseProblem(Parser.java:314)

For me, the ideal behavior would be that one can parse a problem file without any domain file (at least for me, it worked with version 3.8.3). If this is not possible, I think it would be helpful to add a comment to the documentation, that a domain file needs to be parsed before a program file can be parsed.
Please tell me if you need any further information, e.g. if I should create a minimal example.

@pellierd
Copy link
Owner

The parser make tests before reading the problem using the domain. I didn't the check behaviour when reading only problem. You're right, launching a exception is not the good behaviour. We have to change it.

@pellierd pellierd added the bug label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants