-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 in ATNConfig.hashCode #45
Comments
Do you happen to know which commit you're using? (Ideally the SHA hash for it) |
Yes, it is |
Can you add the following assertions to track down the source of failure? In the two assert state != null;
assert semanticContext != null; |
okay, here we go:
|
It would definitely help if you are able to post an example grammar and input for me to duplicate this issue. You may not have to post input - it looks like you have a case where Have you tried regenerating the code? |
Okay, here is the grammar
And here is a test input:
Code for parser execution:
|
Thanks, that's perfect. I was able to derive the following grammar as a unit test for the issue which I'm now working to fix.
Input: |
well, after merging your commits, I get the anticipated exception during parser building
While this is better than a fail at runtime, it is still not satisfactory, as I don't know what I have done wrong. |
Once this issue is corrected, it will be tagged with "status:pull-request" until it gets closed. :) The test I've implemented so far is in place to help track down the issue, but like you saw it doesn't create a working grammar. |
I am no longer able to reproduce this bug. |
Add the ability to explicitly specify the path to the Java executable
Added optional predicate parameter to ParserRuleContext.getChildren(), a...
Hi,
I receive a NullPointerException when running the generated parser on an input. If you need a grammar and input to provoque the bug, let me know (but that will take some time).
Here is the stack trace:
The text was updated successfully, but these errors were encountered: