Fixed uptime button bug.

This commit is contained in:
Christian P. MOMON 2021-06-11 04:54:23 +02:00
parent 54a4cea231
commit 7a916178c4

View file

@ -319,10 +319,13 @@ public class UptimeJournal
if (iterator.hasNext()) if (iterator.hasNext())
{ {
Service current = iterator.next(); Service current = iterator.next();
if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR) if (current.getWebsiteURL() != null)
{ {
ended = true; if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR)
result = true; {
ended = true;
result = true;
}
} }
} }
else else