Index: /trunk/src/org/openstreetmap/josm/io/Capabilities.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/Capabilities.java	(revision 3985)
+++ /trunk/src/org/openstreetmap/josm/io/Capabilities.java	(revision 3986)
@@ -26,5 +26,5 @@
  *     <imagery>
  *       <blacklist regex=".*\.google\.com/.*"/>
- *       <blacklist regex=".*209\.85\.2\d\d.*"/> 
+ *       <blacklist regex=".*209\.85\.2\d\d.*"/>
  *       <blacklist regex=".*209\.85\.1[3-9]\d.*"/>
  *       <blacklist regex=".*209\.85\.12[89].*"/>
@@ -131,5 +131,5 @@
 
     /**
-     * checks if the given URL is blacklisted by one of the of the 
+     * checks if the given URL is blacklisted by one of the of the
      * regular expressions.
      */
@@ -137,7 +137,8 @@
     public boolean isOnImageryBlacklist(String url)
     {
-        for (String blacklistRegex : imageryBlacklist) {
-            if (url.matches(blacklistRegex)) {
-                return true;
+        if (url != null){
+            for (String blacklistRegex : imageryBlacklist) {
+                if (url.matches(blacklistRegex))
+                    return true;
             }
         }
@@ -145,5 +146,5 @@
     }
 
-    /** 
+    /**
      * returns the full list of blacklist regular expressions.
      */
