Skip to content

NPE when attempting to patch app  #94

@Solution6996

Description

@Solution6996

The following error gets thrown when attempting to patch an apk.

INFO : adb exist
Apk C:\Users\me\Downloads\jp.yuika.Rpg2_en.patched\base.apk decompiled at C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136
I: Using Apktool v2.9.0-22-bea15e6f-SNAPSHOT on base.apk
I: Copying raw resources...
I: Copying raw manifest...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
INFO : decompiled at C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136
Copying resources file /AceAndroidLib/code_to_inject/lib/arm64-v8a/liblib_ACE.so to C:\Users\me\AppData\Local\Temp\ModderDecompiledApk12887878657737865136\lib\arm64-v8a\liblib_ACE.so
java.lang.NullPointerException
at modder.Resource.CopyResourceFile(Resource.kt:25)
at modder.Patcher$AddMemScannerLib$1.invoke(Patcher.kt:193)
at modder.Patcher$AddMemScannerLib$1.invoke(Patcher.kt:177)
at modder.Patcher.IterateNativeLibArchDir(Patcher.kt:142)
at modder.Patcher.AddMemScannerLib(Patcher.kt:177)
at modder.Patcher.AddMemScanner(Patcher.kt:267)
at modder.ModderMainCmd.Patch(ModderMainCmd.kt:116)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at picocli.CommandLine.executeUserObject(CommandLine.java:2066)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at modder.Main$Companion.cliInit(Main.kt:24)
at modder.Main$Companion.main(Main.kt:38)
at modder.Main.main(Main.kt)

    Happens to every single app I've tried unfortunately 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions