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,12 +319,15 @@ public class UptimeJournal
if (iterator.hasNext()) if (iterator.hasNext())
{ {
Service current = iterator.next(); Service current = iterator.next();
if (current.getWebsiteURL() != null)
{
if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR) if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR)
{ {
ended = true; ended = true;
result = true; result = true;
} }
} }
}
else else
{ {
ended = true; ended = true;