Skip to content

NPE on dev.onvoid.webrtc.RTCPeerConnection.getConnectionState on closed connection #35

Closed
@thelsing

Description

@thelsing

Describe the bug
After the RTCPeerConnection is closed, calls to getConnectionState() throw a NPE.

To Reproduce
Steps to reproduce the behavior:

  1. Establish a RTCPeerConnection
  2. Close it.
  3. Call getConnectionsState()
  4. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions