From 34a74aaa8550acc217bc964dd2929ec570df2e22 Mon Sep 17 00:00:00 2001 From: Marc Miltenberger Date: Wed, 13 Nov 2024 09:46:24 +0100 Subject: [PATCH 1/3] Fix a bug where getNamespaceUri always returned null --- src/pxb/android/axml/AxmlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pxb/android/axml/AxmlParser.java b/src/pxb/android/axml/AxmlParser.java index eca7ef6..acaa86f 100644 --- a/src/pxb/android/axml/AxmlParser.java +++ b/src/pxb/android/axml/AxmlParser.java @@ -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; From 92af4ae4ac215524e5054a95b691662fb15fb749 Mon Sep 17 00:00:00 2001 From: Marc Miltenberger Date: Wed, 13 Nov 2024 10:04:34 +0100 Subject: [PATCH 2/3] Use next release --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b7211be..aec420e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ de.upb.cs.swt axml axml - 2.1.3 + 2.1.4 The axml components for reading binary Android XML files forked from a not further maintained repository created by Bob Pan @@ -205,4 +205,4 @@ - \ No newline at end of file + From 373efd51dfec9e39a0a5edfe69f58862c39ca9cb Mon Sep 17 00:00:00 2001 From: Marc Miltenberger Date: Wed, 13 Nov 2024 10:14:41 +0100 Subject: [PATCH 3/3] Another conditional was wrong --- src/pxb/android/axml/AxmlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pxb/android/axml/AxmlParser.java b/src/pxb/android/axml/AxmlParser.java index acaa86f..3becb98 100644 --- a/src/pxb/android/axml/AxmlParser.java +++ b/src/pxb/android/axml/AxmlParser.java @@ -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;