summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2018-09-21 10:41:03 -0400
committerJoey Grover <joeygrover@gmail.com>2018-09-21 10:41:03 -0400
commit54b4624bade93530baa9e0e712ec73acfa7db19c (patch)
treea972c2dbcb55ca07562c973b6cd718fdd8ddca9c
parent3a4a0e30709934faafdca26cd3e2f581252ec113 (diff)
downloadsdl_android-54b4624bade93530baa9e0e712ec73acfa7db19c.tar.gz
Check if secondaryTransportParams is null
-rw-r--r--sdl_android/src/main/java/com/smartdevicelink/protocol/SdlProtocol.java2
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));