diff --git a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java index 6791643..865add7 100644 --- a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java +++ b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java @@ -309,6 +309,10 @@ public class UptimeJournal { result = false; } + else if (isEmpty()) + { + result = false; + } else { boolean ended = false; @@ -340,6 +344,21 @@ public class UptimeJournal return result; } + /** + * Checks if is empty. + * + * @return true, if is empty + */ + public boolean isEmpty() + { + boolean result; + + result = this.map.isEmpty(); + + // + return result; + } + /** * Purge. *