Survive decoder if malformed string is encountered

- fixes #1564
This commit is contained in:
Connor Tumbleson 2017-07-27 06:55:18 -04:00
parent ad59fdd378
commit 15bc16c6bd
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -71,6 +71,9 @@ public class ResValueFactory {
}
public ResIntBasedValue factory(String value, int rawValue) {
if (value == null) {
return new ResFileValue("", rawValue);
}
if (value.startsWith("res/")) {
return new ResFileValue(value, rawValue);
}