Fixed null URL case.

This commit is contained in:
Christian P. MOMON 2021-06-10 04:02:11 +02:00
parent 818dc60c4d
commit f2f07e6053

View file

@ -200,7 +200,14 @@ public class UptimeJournal
{ {
Uptimes result; Uptimes result;
if (url == null)
{
result = null;
}
else
{
result = this.map.get(url.toString()); result = this.map.get(url.toString());
}
// //
return result; return result;
@ -219,7 +226,7 @@ public class UptimeJournal
{ {
Uptimes result; Uptimes result;
result = this.map.get(url.toString()); result = getUptimes(url);
if (result == null) if (result == null)
{ {