Skip to content

Commit

Permalink
Promise#succeed should not pass null
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Sep 16, 2024
1 parent 80e0699 commit 39fe36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertx-core/src/main/java/io/vertx/core/Promise.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ default void complete() {
}

default void succeed(T result) {
if (!tryComplete(null)) {
if (!tryComplete(result)) {
throw new IllegalStateException("Promise already completed");
}
}
Expand Down

0 comments on commit 39fe36d

Please sign in to comment.