Skip to content
Snippets Groups Projects
Commit 92fa722c authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] toBamPeers must return empty list, and not null

parent 63885746
No related branches found
No related tags found
No related merge requests found
Pipeline #9547 passed
......@@ -116,7 +116,7 @@ public final class Peers {
}
public static List<NetworkPeers.Peer> toBmaPeers(List<Peer> endpointAsPeers) {
if (CollectionUtils.isEmpty(endpointAsPeers)) return null;
if (CollectionUtils.isEmpty(endpointAsPeers)) return ImmutableList.of();
// Group by peering document
Multimap<String, Peer> groupByPeering = ArrayListMultimap.create();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment