Index: applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java	(revision 29668)
+++ applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadWMSVectorImage.java	(revision 29669)
@@ -54,4 +54,7 @@
                 wmsLayer.grab(bounds);
             }
+            else if(wmsLayer.getImages().size()==0)
+              // failed to contact WMS of find this commune. Remove layer if empty.
+              Main.main.removeLayer(wmsLayer);
         } catch (DuplicateLayerException e) {
             // we tried to grab onto a duplicated layer (removed)
