Colibri Stats crash Videobridge

Hello!

I have enabled colibri stats and they seem to be working fine.

Just in case, this is how I have enabled it:

org.jitsi.videobridge.rest.private.jetty.port=8080
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=colibri 
org.jitsi.videobridge.STATISTICS_INTERVAL=1000

and

JVB_OPTS="--apis=rest"

However, it seems to crash the videobridge for me. This is the jvb.log

RecurringRunnableExecutor.run#230: The invocation of the method org.jitsi.videobridge.stats.StatsManager$StatisticsPeriodicRunnable.run() threw an exception.
    java.lang.NullPointerException
            at org.jitsi.xmpp.mucclient.MucClient.lambda$getMucsJoinedCount$1(MucClient.java:399)
            at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174)
            at java.util.concurrent.ConcurrentHashMap$ValueSpliterator.forEachRemaining(ConcurrentHashMap.java:3566)
            at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
            at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
            at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
            at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
            at java.util.stream.LongPipeline.reduce(LongPipeline.java:461)
            at java.util.stream.LongPipeline.sum(LongPipeline.java:419)
            at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:593)
            at org.jitsi.xmpp.mucclient.MucClient.getMucsJoinedCount(MucClient.java:400)
            at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
            at java.util.concurrent.ConcurrentHashMap$ValueSpliterator.forEachRemaining(ConcurrentHashMap.java:3566)
            at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
            at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
            at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
            at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
            at java.util.stream.IntPipeline.reduce(IntPipeline.java:479)
            at java.util.stream.IntPipeline.sum(IntPipeline.java:437)
            at org.jitsi.xmpp.mucclient.MucClientManager.getMucJoinedCount(MucClientManager.java:355)
            at org.jitsi.videobridge.stats.VideobridgeStatistics.generate0(VideobridgeStatistics.java:560)
            at org.jitsi.videobridge.stats.VideobridgeStatistics.generate(VideobridgeStatistics.java:158)
            at org.jitsi.videobridge.stats.StatsManager$StatisticsPeriodicRunnable.doRun(StatsManager.java:321)
            at org.jitsi.utils.concurrent.PeriodicRunnableWithObject.run(PeriodicRunnableWithObject.java:87)
            at org.jitsi.utils.concurrent.RecurringRunnableExecutor.run(RecurringRunnableExecutor.java:216)
            at org.jitsi.utils.concurrent.RecurringRunnableExecutor.runInThread(RecurringRunnableExecutor.java:292)
            at org.jitsi.utils.concurrent.RecurringRunnableExecutor.access$000(RecurringRunnableExecutor.java:36)
            at org.jitsi.utils.concurrent.RecurringRunnableExecutor$1.run(RecurringRunnableExecutor.java:328)

And this is the jicifo log
org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Can not invite participant -- no bridge available.

Java Version:

openjdk version "1.8.0_252"

OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)

OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

I am very unsure on how to solve this and any help would be greatly appreciated!

this is asking the videobridge to run its stats every second. Maybe you could try to remove this setting (by default it is set at 30 seconds)