mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +01:00
Fix null pointer
When I am decompiling an apk, I got this exception: Exception in thread "main" java.lang.NullPointerException at brut.androlib.res.data.ResResSpec.<init>(ResResSpec.java:42)
This commit is contained in:
parent
3cf5cb6f78
commit
db553ebe8d
@ -39,7 +39,7 @@ public class ResResSpec {
|
||||
if (resResSpec != null) {
|
||||
cleanName = name + "_APKTOOL_DUPLICATENAME_" + id.toString();
|
||||
} else {
|
||||
cleanName = (name.isEmpty() ? ("APKTOOL_DUMMYVAL_" + id.toString()) : name);
|
||||
cleanName = ((name == null || name.isEmpty()) ? ("APKTOOL_DUMMYVAL_" + id.toString()) : name);
|
||||
}
|
||||
|
||||
this.mName = cleanName;
|
||||
|
Loading…
Reference in New Issue
Block a user