Fixed null URL case.
This commit is contained in:
parent
818dc60c4d
commit
f2f07e6053
1 changed files with 9 additions and 2 deletions
|
@ -200,7 +200,14 @@ public class UptimeJournal
|
|||
{
|
||||
Uptimes result;
|
||||
|
||||
result = this.map.get(url.toString());
|
||||
if (url == null)
|
||||
{
|
||||
result = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = this.map.get(url.toString());
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
|
@ -219,7 +226,7 @@ public class UptimeJournal
|
|||
{
|
||||
Uptimes result;
|
||||
|
||||
result = this.map.get(url.toString());
|
||||
result = getUptimes(url);
|
||||
|
||||
if (result == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue