mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-21 01:07:34 +01:00
fix: handle invalid string id during namespace resolution (#3107)
This commit is contained in:
parent
6ed458a428
commit
1e400aa995
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user