Author: ludovicc-guest
Date: 2010-06-28 21:16:25 +0000 (Mon, 28 Jun 2010)
New Revision: 12689

Modified:
   trunk/maven-repo-helper/debian/changelog
   
trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/POMTransformer.java
Log:
Fix 'illegal NCName' error when gcj is used to run the mh_* scripts

Modified: trunk/maven-repo-helper/debian/changelog
===================================================================
--- trunk/maven-repo-helper/debian/changelog    2010-06-28 20:57:31 UTC (rev 
12688)
+++ trunk/maven-repo-helper/debian/changelog    2010-06-28 21:16:25 UTC (rev 
12689)
@@ -1,3 +1,9 @@
+maven-repo-helper (1.2) UNRELEASED; urgency=low
+
+  * Fix 'illegal NCName' error when gcj is used to run the mh_* scripts
+
+ -- Ludovic Claude <ludovic.cla...@laposte.net>  Mon, 28 Jun 2010 23:13:51 
+0200
+
 maven-repo-helper (1.1) unstable; urgency=low
 
   * Add mh_patchpom, useful in some situations to patch

Modified: 
trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/POMTransformer.java
===================================================================
--- 
trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/POMTransformer.java 
    2010-06-28 20:57:31 UTC (rev 12688)
+++ 
trunk/maven-repo-helper/src/main/java/org/debian/maven/repo/POMTransformer.java 
    2010-06-28 21:16:25 UTC (rev 12689)
@@ -578,6 +578,9 @@
         for (int i = 0; i < nbNamespace; i++) {
             String nsPrefix = parser.getNamespacePrefix(i);
             String nsURI = parser.getNamespaceURI(i);
+            if (nsPrefix == null) {
+                nsPrefix = "";
+            }
             writer.writeNamespace(nsPrefix, nsURI);
         }
         int nbAttributes = parser.getAttributeCount();


_______________________________________________
pkg-java-commits mailing list
pkg-java-comm...@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits

Reply via email to