i was using Intel-CS 4.0 sample android p2p application.
I was trying to re-negotiate between two peers. i disconnected the internet for some time and then again connected the application to internet without switching the fragment. Because i want the resume the call. I tried renegotiating.
one peer is working fine but the other peer is giving error and crashing.
Process: com.intel.webrtc.p2p.sample, PID: 19048
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.intel.webrtc.p2p.RemoteStream.onEnded()' on a null object reference
The reason is whenever a remote stream is ended we detach which is making all the remote stream as null.
when i try renegotiating, onRemoveStream is called of P2PPeerConnectionChannel where its trying to call remoteStream.onEnded();
where remote stream is null.
so i am getting NullPointerException.