Commit 06dd2225 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Merge branch 'fix-groupstats-exception' into 'master'

Fix NoSuchElementException in group stats endpoint

See merge request arsnova/arsnova-backend!176
parents 87b7e8b0 b4cb8403
Pipeline #31888 failed with stages
in 0 seconds
......@@ -108,7 +108,7 @@ public class RoomController extends AbstractEntityController<Room> {
.map(cg -> new RoomStatistics.ContentGroupStatistics(cg)).collect(Collectors.toList()));
.mapToInt(cg -> cg.getContentIds().size()).reduce((a, b) -> a + b).getAsInt());
.mapToInt(cg -> cg.getContentIds().size()).reduce((a, b) -> a + b).orElse(0));
return roomStatistics;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment