mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-01 14:47:56 +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.
|
// unless the pkgId of the resource is private. We will grab the non-standard one.
|
||||||
String value = m_strings.getString(namespace);
|
String value = m_strings.getString(namespace);
|
||||||
|
|
||||||
if (value.length() == 0) {
|
if (value == null || value.length() == 0) {
|
||||||
ResID resourceId = new ResID(getAttributeNameResource(index));
|
ResID resourceId = new ResID(getAttributeNameResource(index));
|
||||||
if (resourceId.package_ == PRIVATE_PKG_ID) {
|
if (resourceId.package_ == PRIVATE_PKG_ID) {
|
||||||
value = getNonDefaultNamespaceUri(offset);
|
value = getNonDefaultNamespaceUri(offset);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user