diff options
author | Frank Elias <francois.elias@livio.io> | 2021-04-16 08:47:03 -0400 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2021-04-16 08:47:03 -0400 |
commit | 3b3279b36884acfd3ef757e7fea4f89382f23355 (patch) | |
tree | 6b7b0fcf5dc90a0267ac204c1c411a508566d4fc | |
parent | 613b165faada834b5517d87e22f502b317f537a8 (diff) | |
download | sdl_ios-bugfix/issue-1830-add-error-handling-for-failed-video-data-encryption.tar.gz |
Empty Data error handlingbugfix/issue-1830-add-error-handling-for-failed-video-data-encryption
-rw-r--r-- | SmartDeviceLink/private/SDLProtocol.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/private/SDLProtocol.m b/SmartDeviceLink/private/SDLProtocol.m index 348543801..46ec8f865 100644 --- a/SmartDeviceLink/private/SDLProtocol.m +++ b/SmartDeviceLink/private/SDLProtocol.m @@ -416,7 +416,7 @@ NS_ASSUME_NONNULL_BEGIN header.sessionID = [self sdl_retrieveSessionIDforServiceType:service]; header.messageID = ++_messageID; - if (encryption && data.length) { + if (encryption && data.length && data.length > 0) { NSError *encryptError = nil; data = [self.securityManager encryptData:data withError:&encryptError]; |