return networkConnections.entrySet().stream().map((entry) -> {
Network network = entry.getKey();
Collection<Bot> bots = networkBots.row(network).values();
- int packCount = bots.stream().mapToInt((bot) -> bot.packs().size()).reduce((a, b) -> a + b).getAsInt();
+ int packCount = bots.stream().mapToInt((bot) -> bot.packs().size()).reduce((a, b) -> a + b).orElse(0);
return new ConnectedNetwork(network, entry.getValue().hostname(),
entry.getValue().port(), entry.getValue().nickname(),
channels.stream()