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 after updating to 4.7.0 #2041

Closed
gurpreetsingh85 opened this issue May 5, 2022 · 6 comments
Closed

NPE after updating to 4.7.0 #2041

gurpreetsingh85 opened this issue May 5, 2022 · 6 comments

Comments

@gurpreetsingh85
Copy link

After updating to 4.7.0
All kotlin files analysis is failing with error. It is happening pretty much for each file

using detector edu.umd.cs.findbugs.detect.FindPotentialSecurityCheckBasedOnUntrustedSource
java.lang.NullPointerException: Cannot invoke "org.apache.bcel.classfile.LocalVariableTable.getLocalVariable(int, int)" because the return value of "org.apache.bcel.classfile.Method.getLocalVariableTable()" is null

@welcome
Copy link

welcome bot commented May 5, 2022

Thanks for opening your first issue here! 😃
Please check our contributing guideline. Especially when you report a problem, make sure you share a Minimal, Complete, and Verifiable example to reproduce it in this issue.

@KengoTODA
Copy link
Member

KengoTODA commented May 6, 2022

refs #1810, #2017

@KengoTODA
Copy link
Member

@baloghadamsoftware Check this if you have time. Thanks in advance!

@baloghadamsoftware
Copy link
Contributor

@baloghadamsoftware Check this if you have time. Thanks in advance!

Sure. I will take a look.

@baloghadamsoftware
Copy link
Contributor

I do not know exactly the cause of the problem (actually, I cannot imagine how a local variable table could be missing if there are ALOAD* instructions) but I added a check for the existance of them. I tested it on some Kotlin code now and it seems that the issue is fixed. See #2054.

@gtoison
Copy link
Contributor

gtoison commented Aug 15, 2023

This seems to be fixed by #2054

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

4 participants