Konloch / bytecode-viewer

A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
https://bytecodeviewer.com
GNU General Public License v3.0
14.69k stars 1.15k forks source link

NullPointerException at BytecodeViewer$6.run when opening .apk #132

Closed kzaikin closed 5 years ago

kzaikin commented 8 years ago

I run BV 2.9.8 at Ubuntu 15.10. When I open an .apk I get the errors:

Bytecode Viewer Version: 2.9.8, Preview Copy: false, Fat Jar: true

java.lang.NullPointerException at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:868)

and another one

java.lang.NullPointerException at java.io.Writer.write(Writer.java:157) at brut.a.d.c.b.a(Unknown Source) at c.d.a.a.a(Unknown Source) at c.d.b.a.a.d.a(Unknown Source) at c.d.b.a.a.b.b(Unknown Source) at c.d.b.a.a.b.a(Unknown Source) at brut.a.d.b.p.a(Unknown Source) at brut.a.d.b.o.a(Unknown Source) at brut.a.d.b.o.b(Unknown Source) at brut.a.d.b.j.a(Unknown Source) at brut.a.d.a.b(Unknown Source) at brut.a.a.c(Unknown Source) at brut.a.c.a(Unknown Source) at brut.apktool.Main.a(Unknown Source) at brut.apktool.Main.main(Unknown Source) at the.bytecode.club.bytecodeviewer.APKTool.decodeResources(APKTool.java:13) at the.bytecode.club.bytecodeviewer.BytecodeViewer$6.run(BytecodeViewer.java:864)

I have tried dex2jar and enjarify for apk conversion. Errors are the same

kzaikin commented 8 years ago

Apk is opened OK when I disable resource decode I was able to find it out when I saw the following error output

I: Loading resource table from file: /home/kzaikin/apktool/framework/1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000013 java.lang.NullPointerException

moelfassi commented 8 years ago

same here

einmalfel commented 8 years ago

+1

btwarog commented 7 years ago

+1

m-ajitabh commented 6 years ago

+1

Konloch commented 5 years ago

This should be fixed in the latest version, thanks for the reports!