Skip to content

Commit

Permalink
fix npe when no member found
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed May 25, 2024
1 parent e3405aa commit 7713b4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions choam/src/main/java/com/salesforce/apollo/choam/CHOAM.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ public CHOAM(Parameters params) {

rotateViewKeys();
var bContext = new DelegatedContext<>(params.context());
var adapter = new MessageAdapter(_ -> true, this::signatureHash,
_ -> Collections.emptyList(),
(_, any) -> any, AgedMessageOrBuilder::getContent);
var adapter = new MessageAdapter(_ -> true, this::signatureHash, _ -> Collections.emptyList(), (_, any) -> any,
AgedMessageOrBuilder::getContent);

combine = new ReliableBroadcaster(bContext, params.member(), params.combine(), params.communications(),
params.metrics() == null ? null : params.metrics().getCombineMetrics(),
Expand Down Expand Up @@ -235,6 +234,7 @@ public static Block reconfigure(Digest nextViewId, Map<Digest, Join> joins, Hash
public static Map<Digest, Member> rosterMap(Context<Member> baseContext, Collection<Digest> members) {
return members.stream()
.map(baseContext::getMember)
.filter(m -> m != null)
.collect(Collectors.toMap(Member::getId, Function.identity()));
}

Expand Down

0 comments on commit 7713b4a

Please sign in to comment.