zivlhoo / smali

Automatically exported from code.google.com/p/smali
0 stars 0 forks source link

NullPointerException occurs when baksmali framework.jar #166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What seems to be the problem?
NullPointerException occurs when baksmali framework.jar

What is the exact smali/baksmali command that you ran?
java -jar baksmali-1.4.2.jar -a 10 -x -b -o FW classes.dex

What version of smali/baksmali are you using? What rom are you working
from?
1.4.2
e619-2_signed.zip(79.02M)  http://dl.dbank.com/c037hgbbt3

framework.jar http://pan.baidu.com/share/link?shareid=339274&uk=4177802695

What is the airspeed velocity of an unladen swallow?

Please provide any additional information below: error messages, symptoms,
etc.

Error occured while disassembling class 
Lcom.android.internal.telephony.IccCard$1; - skipping class
java.lang.NullPointerException
        at org.jf.dexlib.ClassDataItem.findMethodByMethodIdInternal(ClassDataItem.java:581)
        at org.jf.dexlib.ClassDataItem.findDirectMethodByMethodId(ClassDataItem.java:553)
        at org.jf.dexlib.Code.Analysis.SyntheticAccessorResolver.getAccessedMember(SyntheticAccessorResolver.java:71)
        at org.jf.baksmali.Adaptors.MethodDefinition.addInstructionMethodItems(MethodDefinition.java:373)
        at org.jf.baksmali.Adaptors.MethodDefinition.getMethodItems(MethodDefinition.java:313)
        at org.jf.baksmali.Adaptors.MethodDefinition.writeTo(MethodDefinition.java:132)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeMethods(ClassDefinition.java:338)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeVirtualMethods(ClassDefinition.java:310)
        at org.jf.baksmali.Adaptors.ClassDefinition.writeTo(ClassDefinition.java:117)
        at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:186)
        at org.jf.baksmali.main.main(main.java:308)

Thanks a lot!

Original issue reported on code.google.com by james9...@gmail.com on 2 Apr 2013 at 4:12

Attachments:

GoogleCodeExporter commented 9 years ago
Weird. The instruction it is erroring on is referring to a non-existant method. 
It's an easy enough fix, but if that code ever got executed on-device, it would 
fail.

Original comment by jesusfreke@jesusfreke.com on 2 Apr 2013 at 6:10

GoogleCodeExporter commented 9 years ago
Fixed

https://code.google.com/p/smali/source/detail?r=cf45978c6a66986c1925af3702eb2370
4737a310

Original comment by jesusfreke@jesusfreke.com on 2 Apr 2013 at 6:15

GoogleCodeExporter commented 9 years ago
You are so great! No error now! Thank u very much!

Original comment by james9...@gmail.com on 2 Apr 2013 at 10:21