Android SDK App Crash - null object reference

Android SDK App Crash - null object reference

Environment:
- Ver: ICS 4.1.1
- ICS-Conferece
- Do not use mixing.

# log cat
2019-02-11 13:45:26.365 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4935, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-02-11 13:45:26.367 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4936, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-02-11 13:45:41.155 8203-8401/com.saeha.ezview.Dev E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-2
Process: com.saeha.ezview.Dev, PID: 8203
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.intel.webrtc.conference.Subscription.onStatusUpdated(com.intel.webrtc.base.MediaConstraints$TrackKind, boolean)' on a null object reference
at com.intel.webrtc.conference.ConferenceClient.lambda$onStreamUpdated$15(ConferenceClient.java:723)
at com.intel.webrtc.conference.-$$Lambda$ConferenceClient$aWl5wjEHeXZzvSUNQcID27_Orgo.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2019-02-11 13:45:41.157 8203-8354/com.saeha.ezview.Dev E/AndroidRuntime: FATAL EXCEPTION: pool-5-thread-1
Process: com.saeha.ezview.Dev, PID: 8203
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.intel.webrtc.conference.Subscription.onStatusUpdated(com.intel.webrtc.base.MediaConstraints$TrackKind, boolean)' on a null object reference
at com.intel.webrtc.conference.ConferenceClient.lambda$onStreamUpdated$15(ConferenceClient.java:723)
at com.intel.webrtc.conference.-$$Lambda$ConferenceClient$aWl5wjEHeXZzvSUNQcID27_Orgo.run(Unknown Source:6)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
2019-02-11 13:45:41.259 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4942, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
2019-02-11 13:45:41.275 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ REQUEST id=4941, [ Transports: CELLULAR Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
2019-02-11 13:45:41.284 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4939, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-02-11 13:45:41.288 3645-3871/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=4940, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]

# Crash Source - ConferenceClient.class
- line 656: while(!pcChannel.stream.id().equals(id) && !pcChannel.key.equals(id));
- line 663: pcChannel.subscription.onStatusUpdated(trackKind, active);

It occurs randomly when a new stream is added or removed.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Thanks for reporting this issue. You may track its status here.

Occurs when the stream is updated before receiving subscribe method call results.

Leave a Comment

Please sign in to add a comment. Not a member? Join today