Index: trunk/src/org/openstreetmap/josm/data/Preferences.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 6625)
+++ trunk/src/org/openstreetmap/josm/data/Preferences.java	(revision 6626)
@@ -878,5 +878,9 @@
             colStr = get("color." + colKey, ColorHelper.color2html(def));
         }
-        return colStr.isEmpty() ? def : ColorHelper.html2color(colStr);
+        if (colStr != null && !colStr.isEmpty()) {
+            return ColorHelper.html2color(colStr);
+        } else {
+            return def;
+        }
     }
 
