Fixed null case in ServiceUptimes.of method.
This commit is contained in:
parent
f3b9de1fd7
commit
26d5d5cd22
1 changed files with 7 additions and 6 deletions
|
@ -46,10 +46,8 @@ public class ServiceUptimes extends ArrayList<ServiceUptime>
|
||||||
/**
|
/**
|
||||||
* Adds the.
|
* Adds the.
|
||||||
*
|
*
|
||||||
* @param serviceName
|
* @param service
|
||||||
* the service name
|
* the service
|
||||||
* @param organizationName
|
|
||||||
* the organization name
|
|
||||||
* @param uptime
|
* @param uptime
|
||||||
* the uptime
|
* the uptime
|
||||||
*/
|
*/
|
||||||
|
@ -116,12 +114,15 @@ public class ServiceUptimes extends ArrayList<ServiceUptime>
|
||||||
result = new ServiceUptimes();
|
result = new ServiceUptimes();
|
||||||
|
|
||||||
for (Service service : services)
|
for (Service service : services)
|
||||||
|
{
|
||||||
|
if (service.getWebsiteURL() != null)
|
||||||
{
|
{
|
||||||
for (Uptime uptime : journal.getUptimes(service.getWebsiteURL()))
|
for (Uptime uptime : journal.getUptimes(service.getWebsiteURL()))
|
||||||
{
|
{
|
||||||
result.add(service, uptime);
|
result.add(service, uptime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue