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

This commit is contained in:
gtully 2021-09-09 13:22:56 +01:00
parent 8fb5b8969f
commit dbdd941c49
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public class ActivationSequenceList extends LockAbstract {
try {
if (nodeManager != null) {
if (coordinationId != null) {
if (!coordinationId.equals(nodeManager.getNodeId())) {
if (nodeManager.getNodeId() == null || !nodeManager.getNodeId().toString().equals(coordinationId)) {
nodeManager = applyCoordinationId(coordinationId, nodeManager, config.getNodeManagerLockLocation());
}
}
@ -120,7 +120,7 @@ public class ActivationSequenceList extends LockAbstract {
} else {
assert nodeId != null;
}
if (!remote) {
if (!remote && nodeManager != null) {
final long localActivationSequence = nodeManager.getNodeActivationSequence();
if (localActivationSequence == NodeManager.NULL_NODE_ACTIVATION_SEQUENCE) {
if (out != null) {