Skip to content

Commit fc9a234

Browse files
committed
Add missing break and null check
1 parent 7ccd6a4 commit fc9a234

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dbms/src/main/java/org/polypheny/db/transaction/locking/LockManager.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,11 @@ public void releaseAllLocks( Transaction transaction ) {
200200
// Success
201201
locks.stream().filter( e -> e.transaction == transaction ).forEach( e -> {
202202
CompletableFuture<Boolean> future = futures.remove( e.lockable );
203-
future.complete( true );
203+
if ( future != null ) {
204+
future.complete( true );
205+
}
204206
} );
207+
break;
205208
}
206209
}
207210
} finally {

0 commit comments

Comments
 (0)