File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
android/src/main/java/com/oney/WebRTCModule Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ private List<PeerConnection.IceServer> createIceServers(ReadableArray iceServers
188188
189189 private PeerConnection .RTCConfiguration parseRTCConfiguration (ReadableMap map ) {
190190 ReadableArray iceServersArray = null ;
191- if (map != null ) {
191+ if (map != null && map . hasKey ( "iceServers" ) ) {
192192 iceServersArray = map .getArray ("iceServers" );
193193 }
194194 List <PeerConnection .IceServer > iceServers = createIceServers (iceServersArray );
@@ -198,8 +198,7 @@ private PeerConnection.RTCConfiguration parseRTCConfiguration(ReadableMap map) {
198198 }
199199
200200 // iceTransportPolicy (public api)
201- if (map .hasKey ("iceTransportPolicy" )
202- && map .getType ("iceTransportPolicy" ) == ReadableType .String ) {
201+ if (map .hasKey ("iceTransportPolicy" ) && map .getType ("iceTransportPolicy" ) == ReadableType .String ) {
203202 final String v = map .getString ("iceTransportPolicy" );
204203 if (v != null ) {
205204 switch (v ) {
You can’t perform that action at this time.
0 commit comments