diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2017-02-07 13:16:33 -0800 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2017-02-07 13:16:33 -0800 |
commit | 54c414e391a5d3d0203e10a6f54cafda9bb9d3fb (patch) | |
tree | 05bb6c12120a24036306ab6c4c5583bb2680cd97 | |
parent | 749c4ea4a606f163bacf2d8c7ab7f351c53fb2e0 (diff) | |
download | sdl_ios-54c414e391a5d3d0203e10a6f54cafda9bb9d3fb.tar.gz |
Fixed issue with calling streaming media manager if proxy is started, but not connected.
-rw-r--r-- | SmartDeviceLink/SDLProxy.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLProxy.m b/SmartDeviceLink/SDLProxy.m index 58ee557c7..341d19f9c 100644 --- a/SmartDeviceLink/SDLProxy.m +++ b/SmartDeviceLink/SDLProxy.m @@ -182,7 +182,7 @@ const int POLICIES_CORRELATION_ID = 65535; - (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]; |