You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2007/05/17 16:33:58 UTC

svn commit: r538944 - /felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java

Author: rickhall
Date: Thu May 17 07:33:57 2007
New Revision: 538944

URL: http://svn.apache.org/viewvc?view=rev&rev=538944
Log:
Applied patch (FELIX-281) to improve handling of nulls for the hashtable.

Modified:
    felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java

Modified: felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java?view=diff&rev=538944&r1=538943&r2=538944
==============================================================================
--- felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java (original)
+++ felix/trunk/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java Thu May 17 07:33:57 2007
@@ -126,6 +126,9 @@
   for (Iterator i = instructions.entrySet().iterator(); i.hasNext();) {
     final Map.Entry e = (Map.Entry)i.next();
     final String key = (String)e.getKey();
+    if (e.getValue() == null) {
+      e.setValue("");
+    }
     if (key.startsWith("_")) {
       final String transformedKey = "-"+key.substring(1);
       instructions.put(transformedKey, e.getValue());