Index: trunk/scripts/SyncEditorLayerIndex.java
===================================================================
--- trunk/scripts/SyncEditorLayerIndex.java	(revision 17737)
+++ trunk/scripts/SyncEditorLayerIndex.java	(revision 18208)
@@ -64,4 +64,5 @@
 import org.openstreetmap.josm.tools.OptionParser.OptionCount;
 import org.openstreetmap.josm.tools.ReflectionUtils;
+import org.openstreetmap.josm.tools.Utils;
 import org.xml.sax.SAXException;
 
@@ -959,5 +960,5 @@
         Map<String, Set<String>> jh = getNoTileHeader(j);
         if (!Objects.equals(eh, jh)) {
-            if (jh == null || jh.isEmpty()) {
+            if (Utils.isEmpty(jh)) {
                 myprintln("- Missing JOSM no tile headers ("+eh+"): "+getDescription(j));
             } else if (eh != null && !eh.isEmpty()) {
