Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public Object execute(Fitable fitable, List<Target> targets, InvocationContext c
fitable.toUniqueId());
return null;
}
}).reduce(context.accumulator()).orElse(null);
}).filter(Objects::nonNull).reduce(context.accumulator()).orElse(null);
}

private Object execute(Fitable fitable, Target target, InvocationContext context, Object[] args) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import java.util.Collections;
import java.util.List;
import java.util.Objects;

/**
* 表示 {@link GenericableExecutor} 的多播调用实现。
Expand All @@ -39,6 +40,6 @@ public Object execute(List<Fitable> fitables, InvocationContext context, Object[
fitable.toUniqueId());
return null;
}
}).reduce(context.accumulator()).orElse(null);
}).filter(Objects::nonNull).reduce(context.accumulator()).orElse(null);
}
}