diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/AXmlResourceParser.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/AXmlResourceParser.java index 139fe769..10c609d2 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/AXmlResourceParser.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/decoder/AXmlResourceParser.java @@ -289,7 +289,7 @@ public class AXmlResourceParser implements XmlResourceParser { // unless the pkgId of the resource is private. We will grab the non-standard one. String value = m_strings.getString(namespace); - if (value.length() == 0) { + if (value == null || value.length() == 0) { ResID resourceId = new ResID(getAttributeNameResource(index)); if (resourceId.package_ == PRIVATE_PKG_ID) { value = getNonDefaultNamespaceUri(offset);