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 in KotlinWhenStringFilter #940
Comments
I run into this while trying to reproduce an issue reported to our mailing list: https://groups.google.com/forum/?fromgroups=#!topic/jacoco/cx9sTR3KMr4 |
The NPE happens because
where |
this happens for the following weird bytecode
because following loop is not executed jacoco/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/KotlinWhenStringFilter.java Line 73 in 8b586a9
and hence cursor doesn't move
|
Analysis of class file compiled by javac 11.0.3 from the following weird Java code causes the same NPE:
|
And we can have similar NPE in |
Steps to reproduce
JaCoCo version: master (commit 8b586a9)
Operating system: OSX
Tool integration: CLI
Run
on the attached class file.
Expected behaviour
Command terminates without exception.
Actual behaviour
NPE.zip
The text was updated successfully, but these errors were encountered: