Index: /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java	(revision 33278)
+++ /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java	(revision 33279)
@@ -32,5 +32,5 @@
         try {
             if (wmsLayer.grabber.getWmsInterface().retrieveInterface(wmsLayer)) {
-                if (wmsLayer.getImages().isEmpty()) {
+                if (!wmsLayer.hasImages()) {
                     // first time we grab an image for this layer
                     if (CacheControl.cacheEnabled) {
@@ -54,7 +54,8 @@
                 // grab new images from wms server into active layer
                 wmsLayer.grab(bounds);
-            } else if (wmsLayer.getImages().size() == 0)
+            } else if (!wmsLayer.hasImages()) {
               // failed to contact WMS of find this commune. Remove layer if empty.
               Main.getLayerManager().removeLayer(wmsLayer);
+            }
         } catch (DuplicateLayerException e) {
             // we tried to grab onto a duplicated layer (removed)
Index: /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java
===================================================================
--- /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java	(revision 33278)
+++ /applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/WMSLayer.java	(revision 33279)
@@ -707,4 +707,8 @@
     }
 
+    public boolean hasImages() {
+        return images != null && !images.isEmpty();
+    }
+
     public void addImage(GeorefImage img) {
         imagesLock.lock();
