Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

Android v4.3 throws NullPointException during conference

ConferenceClient throws NullPointException during conference, is there something wrong?

@Override
    public void onError(final String id, final String errorMsg, boolean ignored) {
        OwtError error = new OwtError(3000, errorMsg);
        callbackExecutor.execute(() -> {
            if (pubCallbacks.containsKey(id)) {
                triggerCallback(pubCallbacks.get(id), error);
                pubCallbacks.remove(id);
            }
            if (subCallbacks.containsKey(id)) {
                triggerCallback(subCallbacks.get(id), error);
                subCallbacks.remove(id);
            }
        });
        for (ConferencePeerConnectionChannel pcChannel : pcChannels.values()) {
            if (pcChannel.key.equals(id)) {
                if (pcChannel.publication != null) {
                    pcChannel.publication.onError(error);
                } else {
                    pcChannel.subscription.onError(error); //here throws NullPointExceeption???
                }
            }
        }
        onEnded(id);
    }

 

Error log:

owt.conference.ConferenceClient.onError(ConferenceClient.java:897)

owt.conference.ConferencePeerConnectionChannel.lambda$onSetFailure$1(ConferencePeerConnectionChannel.java:118)

owt.conference.-$$Lambda$ConferencePeerConnectionChannel$4ynIeN9NpcOnciZS8-G4eTd1v60.run(lambda)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

java.lang.Thread.run(Thread.java:818)

 

Tags (2)
0 Kudos
2 Replies
Highlighted
Beginner
1 View

Another error log for this

Another error log for this exception.

 

owt.conference.ConferenceClient.onError(ConferenceClient.java:897)

owt.conference.ConferencePeerConnectionChannel.lambda$onIceConnectionChange$3(ConferencePeerConnectionChannel.java:134)

owt.conference.-$$Lambda$ConferencePeerConnectionChannel$QoR_dXe_OM-yy_01bz8PWHj3SOQ.run(Unknown Source:4)

java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

java.lang.Thread.run(Thread.java:784)

0 Kudos
Highlighted
Beginner
1 View

Another error log for this

Another error log for this exception, I think the bug would be similar. The pcChannels has removed the key, but the callback execute  for the key as before.

 

1 owt.base.CheckCondition.RCHECK(CheckCondition.java:42)

2 owt.base.CheckCondition.DCHECK(CheckCondition.java:33)

3 owt.conference.ConferenceClient.getPeerConnection(ConferenceClient.java:505)

4 owt.conference.ConferenceClient.onProgressMessage(ConferenceClient.java:639)

5 owt.conference.SignalingChannel.lambda$null$7(SignalingChannel.java:113)

6 owt.conference.-$$Lambda$SignalingChannel$vEze82r4HvjvcbCPecLEzAzAn_s.run(Unknown Source:4)

0 Kudos