From 7a916178c48e279652262bc96d28f5cceef08a2b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 11 Jun 2021 04:54:23 +0200 Subject: [PATCH] Fixed uptime button bug. --- src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java index 3bc1efc..0739f92 100644 --- a/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java +++ b/src/fr/devinsy/statoolinfos/uptime/UptimeJournal.java @@ -319,10 +319,13 @@ public class UptimeJournal if (iterator.hasNext()) { Service current = iterator.next(); - if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR) + if (current.getWebsiteURL() != null) { - ended = true; - result = true; + if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR) + { + ended = true; + result = true; + } } } else