Skip to content

Commit

Permalink
Fix misleading node ID startup message (MID-6176)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Apr 14, 2020
1 parent d7574bf commit 12c3c9f
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -67,7 +67,13 @@ String determineNodeId(Configuration root, boolean clustered, OperationResult re
}
}

String nodeId = getNodeIdFromExpression(root.getInterpolator(), nodeIdExpression, result);
String nodeId;
if (nodeIdExpression != null) {
nodeId = getNodeIdFromExpression(root.getInterpolator(), nodeIdExpression, result);
} else {
nodeId = null;
}

if (StringUtils.isNotEmpty(nodeId)) {
if (nodeId.equals(nodeIdExpression)) {
LOGGER.info("Using configured node ID '{}'", nodeId);
Expand Down

0 comments on commit 12c3c9f

Please sign in to comment.