Skip to content

Commit b20558f

Browse files
authored
Avoid NPE in the Procedure framework apache#16607
1 parent 2ae06e8 commit b20558f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/scheduler/AbstractProcedureScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void signalAll() {
7878

7979
@Override
8080
public void addFront(final Procedure procedure) {
81-
if (procedure.isSuccess()) {
81+
if (procedure != null && procedure.isSuccess()) {
8282
LOG.warn("Don't add a successful procedure back to the scheduler, it will be ignored");
8383
return;
8484
}

0 commit comments

Comments
 (0)