From: Piotr Kosko
Date: Tue, 21 Jul 2015 07:56:27 +0000 (+0200)
Subject: [Messaging] Fixed handling wrong message types to ignore unknown
X-Git-Tag: submit/tizen_tv/20150803.021740^2^2~54^2
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d5744e1d896d001052675e58d28121cb3f3aa9b;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Messaging] Fixed handling wrong message types to ignore unknown
[Verification] TCT SMS 100%, MMS 100% on binary Z130HDDE0COG2
Change-Id: Ie6fb11ca67c8d0fe420fc71e9c3faa2d001976ff
Signed-off-by: Piotr Kosko
---
diff --git a/src/messaging/short_message_manager.cc b/src/messaging/short_message_manager.cc
index 8f1674b0..0e31e46f 100755
--- a/src/messaging/short_message_manager.cc
+++ b/src/messaging/short_message_manager.cc
@@ -1006,6 +1006,10 @@ void ShortMsgManager::findMessages(FindMsgCallbackUserData* callback)
Message* message = nullptr;
PlatformResult ret = Message::convertPlatformShortMessageToObject(msg, &message);
if (ret.IsError()) {
+ if (ErrorCode::INVALID_VALUES_ERR == ret.error_code()) {
+ LoggerW("Ignore messages with not supported/unrecognized type");
+ continue;
+ }
LoggerE("Cannot get platform Message structure");
callback->SetError(PlatformResult(ErrorCode::UNKNOWN_ERR, "Cannot get platform Message structure"));
break;