ARTEMIS-3446 - tidy up cli set code based on static analysis

This commit is contained in:
gtully 2021-09-09 13:29:01 +01:00
parent dbdd941c49
commit 475d349a23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class ActivationSequenceSet extends LockAbstract {
try {
if (coordinationId != null) {
// force using coordinationId whatever it is - either for multi-primary or just forced through CLI
if (!coordinationId.equals(nodeManager.getNodeId())) {
if (nodeManager.getNodeId() == null || !nodeManager.getNodeId().toString().equals(coordinationId)) {
nodeManager = applyCoordinationId(coordinationId, nodeManager, config.getNodeManagerLockLocation());
}
}