Fixed empty uptime journal case.
This commit is contained in:
parent
0e30bf2c06
commit
bb3920d32a
1 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue