Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug where getNamespaceUri always returned null #17

Merged
merged 4 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading