From 56cbabff63f1e072dd0de16c99ab563583b66345 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Sun, 7 Feb 2016 15:07:23 -0800 Subject: [PATCH] Adds a sanity check to the local node info compare. --- command/agent/local.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/command/agent/local.go b/command/agent/local.go index 5815367229..e456ebb2e5 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -368,7 +368,8 @@ func (l *localState) setSyncState() error { // Check the node info (currently limited to tagged addresses since // everything else is managed by the Serf layer) - if !reflect.DeepEqual(out1.NodeServices.Node.TaggedAddresses, l.config.TaggedAddresses) { + if out1.NodeServices == nil || out1.NodeServices.Node == nil || + !reflect.DeepEqual(out1.NodeServices.Node.TaggedAddresses, l.config.TaggedAddresses) { l.nodeInfoInSync = false }