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.
|
||||
*
|
||||
* @param serviceName
|
||||
* the service name
|
||||
* @param organizationName
|
||||
* the organization name
|
||||
* @param service
|
||||
* the service
|
||||
* @param uptime
|
||||
* the uptime
|
||||
*/
|
||||
|
@ -117,9 +115,12 @@ public class ServiceUptimes extends ArrayList<ServiceUptime>
|
|||
|
||||
for (Service service : services)
|
||||
{
|
||||
for (Uptime uptime : journal.getUptimes(service.getWebsiteURL()))
|
||||
if (service.getWebsiteURL() != null)
|
||||
{
|
||||
result.add(service, uptime);
|
||||
for (Uptime uptime : journal.getUptimes(service.getWebsiteURL()))
|
||||
{
|
||||
result.add(service, uptime);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue