Skip to content

Commit

Permalink
fix: handle invalid string id during namespace resolution (#3107)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches committed Jun 28, 2023
1 parent 6ed458a commit 1e400aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e400aa

Please sign in to comment.