Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1135 Discussions

Android v4.3 throws NullPointException during conference

Wang__YueJie
Beginner
124 Views
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)

 

0 Kudos
2 Replies
Wang__YueJie
Beginner
124 Views

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)

Wang__YueJie
Beginner
124 Views

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)

Reply