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

java.lang.NullPointerException #1422

Closed
AdminHcat opened this issue Mar 24, 2022 · 2 comments
Closed

java.lang.NullPointerException #1422

AdminHcat opened this issue Mar 24, 2022 · 2 comments

Comments

@AdminHcat
Copy link

AdminHcat commented Mar 24, 2022

Please describe what you did before the error occurred.
IMPORTANT! If the error occurs with a specific APK file please attach or provide link to apk file!

  • Jadx version: 1.3.4.357-fe91d774
  • Java version: 11.0.13
  • Java VM: Amazon.com Inc. OpenJDK 64-Bit Server VM
  • Platform: Windows 10 (10.0 amd64)
  • Max heap size: 6206 MB
  • Program args: -Xms443m -Xmx6206m -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -XX:+UseG1GC
java.lang.NullPointerException
	at jadx.gui.ui.dialog.UsageDialog.lambda$getMethodUseIn$1(UsageDialog.java:78)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at jadx.gui.ui.dialog.UsageDialog.getMethodUseIn(UsageDialog.java:78)
	at jadx.gui.ui.dialog.UsageDialog.collectUsageData(UsageDialog.java:66)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)

com.corrodinggames.rts.game.units.am.c()
com.corrodinggames.rts.game.units.al Line 2913

Error renaming
game-lib.zip

@jpstotz
Copy link
Collaborator

jpstotz commented Mar 24, 2022

Thanks for reporting. Looks like we have to filter out null values in JavaMethod.getOverrideRelatedMethods. The null values are generated by JadxDecompiler.convertNode(m)

@skylot
Copy link
Owner

skylot commented Mar 25, 2022

I commit a fix to correctly handle inlined (and moved) classes. Thanks, @AdminHcat!

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

3 participants