Index: /trunk/src/org/openstreetmap/josm/data/Preferences.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 3193)
+++ /trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 3194)
@@ -608,5 +608,5 @@
     synchronized public Color getDefaultColor(String colName) {
         String colStr = defaults.get("color."+colName);
-        return colStr.equals("") ? null : ColorHelper.html2color(colStr);
+        return colStr == null || "".equals(colStr) ? null : ColorHelper.html2color(colStr);
     }
 
@@ -756,5 +756,5 @@
     /**
      * Replies the collection of plugin site URLs from where plugin lists can be downloaded
-     * 
+     *
      * @return
      */
@@ -765,5 +765,5 @@
     /**
      * Sets the collection of plugin site URLs.
-     * 
+     *
      * @param sites the site URLs
      */
