From d8f66e3d663b165de3ae169a7ef743789cfda209 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 19 Oct 2021 01:58:06 +0200 Subject: [PATCH] Fixed empty uptimes case. --- src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java index 072dfad..17d752a 100644 --- a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java +++ b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java @@ -206,11 +206,15 @@ public class UptimeJournal if (url == null) { - result = null; + result = new Uptimes(); } else { result = this.map.get(url.toString()); + if (result == null) + { + result = new Uptimes(); + } } //