ARTEMIS-3145 ensure lock validity before releasing

This commit is contained in:
Justin Bertram 2021-10-26 10:29:53 -05:00
parent bafa0fbb3c
commit ec52682697
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ public class FileLockNodeManager extends FileBasedNodeManager {
result = bb.get(0);
}
} finally {
if (lock != null) {
if (lock != null && lock.isValid()) {
lock.release();
}
}