diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index 12b5515c..7487af13 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -466,7 +466,7 @@ public class CaldavConnection extends AbstractConnection { DavGatewayTray.switchIcon(); try { String eventName = getEventFileNameFromPath(href); - if (eventName == null || eventName.isEmpty()) { + if (eventName == null || eventName.length() == 0) { notFound.add(href); } else if ("inbox".equals(eventName) || "calendar".equals(eventName)) { // Sunbird: just ignore