Fixed empty uptime journal case.

This commit is contained in:
Christian P. MOMON 2021-06-16 01:58:06 +02:00
parent 0e30bf2c06
commit bb3920d32a

View file

@ -309,6 +309,10 @@ public class UptimeJournal
{
result = false;
}
else if (isEmpty())
{
result = false;
}
else
{
boolean ended = false;
@ -340,6 +344,21 @@ public class UptimeJournal
return result;
}
/**
* Checks if is empty.
*
* @return true, if is empty
*/
public boolean isEmpty()
{
boolean result;
result = this.map.isEmpty();
//
return result;
}
/**
* Purge.
*