Skip to content

Commit 9399679

Browse files
authored
Merge pull request #3732 from actiontech/2232
fix npe inner 2232
2 parents f0e177d + 465dfde commit 9399679

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/actiontech/dble/services/BackendService.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,8 @@ public void backendSpecialCleanUp() {
335335

336336
public void releaseSignal() {
337337
isRowDataFlowing = false;
338-
if (recycler != null) {
339-
recycler.signal();
340-
recycler = null;
341-
}
338+
Optional.ofNullable(recycler).ifPresent(res -> res.signal());
339+
recycler = null;
342340
}
343341

344342
public void resetContextStatus() {

0 commit comments

Comments
 (0)