Skip to content

Commit

Permalink
Merge pull request #1959 from a-bahmani/patch-1
Browse files Browse the repository at this point in the history
fix: prevent NPE when referencing a missing ResSpec
  • Loading branch information
iBotPeaches authored Feb 28, 2019
2 parents 53fdd9f + 8e00de3 commit c8d2a6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public ResResSpec(ResID id, String name, ResPackage pkg, ResTypeSpec type) {
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;
Expand Down

0 comments on commit c8d2a6a

Please sign in to comment.