Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1544424] Add check for null agentClient which means it is not online
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Burman committed Feb 12, 2018
1 parent 7ef087a commit f6078a1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -970,7 +970,7 @@ private boolean sendUpdatedSchedulesToAgent(Agent agent,
Set<ResourceMeasurementScheduleRequest> resourceMeasurementScheduleRequest) {
try {
AgentClient agentClient = LookupUtil.getAgentManager().getAgentClient(agent);
if (!agentClient.pingService(2000)) {
if (agentClient == null || !agentClient.pingService(2000)) {
if (log.isDebugEnabled()) {
log.debug("Won't send MeasurementSchedules to offline Agent[id=" + agent.getId() + "]");
}
Expand Down

0 comments on commit f6078a1

Please sign in to comment.