diff options
author | Joey Grover <joeygrover@gmail.com> | 2018-10-05 12:23:56 -0400 |
---|---|---|
committer | Joey Grover <joeygrover@gmail.com> | 2018-10-05 12:23:56 -0400 |
commit | f184f5c27c918112262aae372fd6c85757a0bca4 (patch) | |
tree | 852c66db207650a3e8c07b652e66286010fc87b1 | |
parent | 095853b6ced16c45bbddb2a0253b487620ad2274 (diff) | |
download | sdl_android-f184f5c27c918112262aae372fd6c85757a0bca4.tar.gz |
Ensure context is set before using itbugfix/legacy_usb
-rw-r--r-- | sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java b/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java index 2efb77119..868c71054 100644 --- a/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java +++ b/sdl_android/src/main/java/com/smartdevicelink/transport/RouterServiceValidator.java @@ -102,11 +102,12 @@ public class RouterServiceValidator { } public RouterServiceValidator(@NonNull MultiplexTransportConfig config){ - inDebugMode = inDebugMode(); this.context = config.context; this.service = config.service; setSecurityLevel(config.securityLevel); + inDebugMode = inDebugMode(); } + /** * Main function to call to ensure we are connecting to a validated router service * @return whether or not the currently running router service can be trusted. |