diff options
author | Joey Grover <joeygrover@gmail.com> | 2018-09-21 10:41:03 -0400 |
---|---|---|
committer | Joey Grover <joeygrover@gmail.com> | 2018-09-21 10:41:03 -0400 |
commit | 54b4624bade93530baa9e0e712ec73acfa7db19c (patch) | |
tree | a972c2dbcb55ca07562c973b6cd718fdd8ddca9c | |
parent | 3a4a0e30709934faafdca26cd3e2f581252ec113 (diff) | |
download | sdl_android-54b4624bade93530baa9e0e712ec73acfa7db19c.tar.gz |
Check if secondaryTransportParams is null
-rw-r--r-- | sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java b/sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java index a3a515e8d..4a5be2d58 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java +++ b/sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java @@ -765,7 +765,7 @@ public class SdlProtocol { if(transportManager.isConnected(secondaryTransportType,null)){ //The transport is actually connected, however no service has been registered registerSecondaryTransport(sessionID,transportManager.getTransportRecord(secondaryTransportType,null)); - }else if(secondaryTransportParams.containsKey(secondaryTransportType)) { + }else if(secondaryTransportParams != null && secondaryTransportParams.containsKey(secondaryTransportType)) { //No acceptable secondary transport is connected, so first one must be connected header.setTransportRecord(new TransportRecord(secondaryTransportType,"")); transportManager.requestSecondaryTransportConnection(sessionID,secondaryTransportParams.get(secondaryTransportType)); |