mirror of
https://github.com/jlengrand/vert.x.git
synced 2026-03-10 08:51:19 +00:00
Return the empty succeeded future when for succeeded null futures
This commit is contained in:
@@ -62,7 +62,11 @@ public interface Future<T> extends AsyncResult<T> {
|
||||
* @return the future
|
||||
*/
|
||||
static <T> Future<T> succeededFuture(T result) {
|
||||
return factory.succeededFuture(result);
|
||||
if (result == null) {
|
||||
return factory.succeededFuture();
|
||||
} else {
|
||||
return factory.succeededFuture(result);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user