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