Skip to content

Commit

Permalink
0003075: Sync configuration on upgrade and as periodic job
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 27, 2017
1 parent 402c9dd commit 2b3dee0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -160,7 +160,7 @@ public RemoteNodeStatus pullConfigData(boolean force) {
Node local = nodeService.findIdentity();
RemoteNodeStatus status = null;

if (!parameterService.isRegistrationServer() && (force || !Version.version().equals(local.getConfigVersion()))) {
if (!parameterService.isRegistrationServer() && local != null && (force || !Version.version().equals(local.getConfigVersion()))) {
Node remote = new Node();
remote.setSyncUrl(parameterService.getRegistrationUrl());
status = new RemoteNodeStatus(remote.getNodeId(), Constants.CHANNEL_CONFIG, configurationService.getChannels(false));
Expand Down

0 comments on commit 2b3dee0

Please sign in to comment.