Skip to content

Commit

Permalink
Survive decoder if malformed string is encountered
Browse files Browse the repository at this point in the history
 - fixes #1564
  • Loading branch information
iBotPeaches committed Jul 27, 2017
1 parent ad59fdd commit 15bc16c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public ResScalarValue factory(int type, int value, String rawValue) throws Andro
}

public ResIntBasedValue factory(String value, int rawValue) {
if (value == null) {
return new ResFileValue("", rawValue);
}
if (value.startsWith("res/")) {
return new ResFileValue(value, rawValue);
}
Expand Down

0 comments on commit 15bc16c

Please sign in to comment.