Fixed missing item case in uptime feature.
This commit is contained in:
parent
85c311a260
commit
378bde2d73
1 changed files with 7 additions and 3 deletions
|
@ -325,13 +325,17 @@ public class UptimeJournal
|
||||||
Service current = iterator.next();
|
Service current = iterator.next();
|
||||||
if (current.getWebsiteURL() != null)
|
if (current.getWebsiteURL() != null)
|
||||||
{
|
{
|
||||||
if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR)
|
Uptimes currentUptimes = getUptimes(current.getWebsiteURL());
|
||||||
|
if (!currentUptimes.isEmpty())
|
||||||
|
{
|
||||||
|
if (currentUptimes.last().getStatus() == UptimeStatus.ERROR)
|
||||||
{
|
{
|
||||||
ended = true;
|
ended = true;
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ended = true;
|
ended = true;
|
||||||
|
|
Loading…
Reference in a new issue