From f2f07e60539420fbd944a108f87b602b07160fb8 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 10 Jun 2021 04:02:11 +0200 Subject: [PATCH] Fixed null URL case. --- src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java index e49a4e5..c6ac2b1 100644 --- a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java +++ b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java @@ -200,7 +200,14 @@ public class UptimeJournal { Uptimes result; - result = this.map.get(url.toString()); + if (url == null) + { + result = null; + } + else + { + result = this.map.get(url.toString()); + } // return result; @@ -219,7 +226,7 @@ public class UptimeJournal { Uptimes result; - result = this.map.get(url.toString()); + result = getUptimes(url); if (result == null) {