summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2017-02-07 15:25:35 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2017-02-07 15:25:35 -0800
commit401d5886b8a93c427d8a2328dac44bb69f543329 (patch)
tree7495f1ae424aba194e88a47ff2b50919eccf57a6
parent6bf537f213746d40ae3971dcf1a4e66a5d523666 (diff)
parent4aed70aa1c6ab316bb7c953ad4a7df481f9530ca (diff)
downloadsdl_ios-401d5886b8a93c427d8a2328dac44bb69f543329.tar.gz
Merge remote-tracking branch 'origin/master' into develop
* origin/master: Fixed issue with calling streaming media manager if proxy is started, but not connected.
-rw-r--r--SmartDeviceLink/SDLProxy.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m
index 1be80e19e..c818570c7 100644
--- a/SmartDeviceLink/SDLProxy.m
+++ b/SmartDeviceLink/SDLProxy.m
@@ -164,7 +164,7 @@ static float DefaultConnectionTimeout = 45.0;
- (nullable SDLStreamingMediaManager *)streamingMediaManager {
if (_streamingMediaManager == nil) {
if (self.displayCapabilities == nil) {
- @throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"SDLStreamingMediaManager must be accessed only after a successful RegisterAppInterfaceResponse" userInfo:nil];
+ return nil;
}
_streamingMediaManager = [[SDLStreamingMediaManager alloc] initWithProtocol:self.protocol displayCapabilities:self.displayCapabilities];
[self.protocol.protocolDelegateTable addObject:_streamingMediaManager];