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 139fe76952..10c609d252 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 String getAttributeNamespace(int index) { // 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);