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 when parsing log #314
Comments
Hi @punx120, thank you for reporting this bug. Please could you post the stack trace here so I can understand the code path taken to this NPE? Many thanks, Chris |
Here you go:
` |
Hi @punx120
I do agree that it is possible for an NPE on that check since getComponentType can return null but I would like to understand how it got into the state where it thought it was parsing a varargs parameter:
Could you possibly provide the log file you were parsing please? Thanks, Chris |
I've added a null check to the isAssignableFrom test. |
Thank you chris. The initial stack trace was probably taken with an old version - but when i re-ran it with the latest - I had a similar stack trace. This happened when parsing a log from one of the app at my job - and unfortunately, i'm afraid it'd be difficult to share it. |
I've re-opened the issue. |
You mean with a version just before your "last" commit? |
Hi @punx120 I mean could you show me the stack trace you get when you test with the very latest commit that includes the guard I added. If it is still throwing exceptions with this guard I will investigate further. Thanks, Chris |
Sorry for the confusion - here's what happened:
I haven't tried with a version built from master, but i'm fairly confident it won't crash. I can give it a try if you want. I can also try to give you a stack trace with a verison built before the commit. Long story short, I think it's fine to close that issue. |
OK thanks for confirming. Closing this issue. |
Hi,
Using the latest code of jitwatch - I have a NPE in ParseUtil.java because componentType is null:
if (componentType.isAssignableFrom(sigParamClass))
I added a simple if and it seems that memParamClass is "boolean".
I'm running 1.8.0 192.
Let me know if need something else.
Thanks
The text was updated successfully, but these errors were encountered: