Describe the bug
After the RTCPeerConnection is closed, calls to getConnectionState() throw a NPE.
To Reproduce
Steps to reproduce the behavior:
Establish a RTCPeerConnection
Close it.
Call getConnectionsState()
See NPE.
Expected behavior
Simple state methods should return a default value if the native object was discarded. In this case RTCPeerConnectionState.CLOSED or DISCONNECTED.
Describe the bug After the RTCPeerConnection is closed, calls to getConnectionState() throw a NPE.
To Reproduce Steps to reproduce the behavior:
Expected behavior Simple state methods should return a default value if the native object was discarded. In this case RTCPeerConnectionState.CLOSED or DISCONNECTED.