Skip to content

Commit

Permalink
Merge pull request #17 from MarcMil/master
Browse files Browse the repository at this point in the history
Fix a bug where getNamespaceUri always returned null
  • Loading branch information
StevenArzt authored Nov 13, 2024
2 parents e7771fd + bea7189 commit 70c75eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>de.upb.cs.swt</groupId>
<artifactId>axml</artifactId>
<name>axml</name>
<version>2.1.3</version>
<version>2.1.4</version>
<description>The axml components for reading binary Android XML files forked from a not further maintained
repository created by Bob Pan
</description>
Expand Down Expand Up @@ -205,4 +205,4 @@
</build>
</profile>
</profiles>
</project>
</project>
2 changes: 1 addition & 1 deletion src/pxb/android/axml/AxmlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public String getNamespacePrefix() {
}

public String getNamespaceUri() {
if (nsIdx < 0 && nsIdx >= strings.length) {
if (nsIdx >= 0 && nsIdx < strings.length) {
return strings[nsIdx];
}
return null;
Expand Down

0 comments on commit 70c75eb

Please sign in to comment.