mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-01 06:34:25 +02:00
Merge pull request #1959 from a-bahmani/patch-1
fix: prevent NPE when referencing a missing ResSpec
This commit is contained in:
commit
c8d2a6a853
@ -39,7 +39,7 @@ public class ResResSpec {
|
|||||||
if (resResSpec != null) {
|
if (resResSpec != null) {
|
||||||
cleanName = name + "_APKTOOL_DUPLICATENAME_" + id.toString();
|
cleanName = name + "_APKTOOL_DUPLICATENAME_" + id.toString();
|
||||||
} else {
|
} else {
|
||||||
cleanName = (name.isEmpty() ? ("APKTOOL_DUMMYVAL_" + id.toString()) : name);
|
cleanName = ((name == null || name.isEmpty()) ? ("APKTOOL_DUMMYVAL_" + id.toString()) : name);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.mName = cleanName;
|
this.mName = cleanName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user