[content] Clear exception
authorSeokpil Park <seokpil.park@samsung.com>
Tue, 30 Jul 2013 12:36:50 +0000 (21:36 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Tue, 30 Jul 2013 12:36:54 +0000 (21:36 +0900)
Change-Id: I01c1f41a30501ca1e01792c7e976d32ed25853bf
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
src/FCnt_ContentManagerImpl.cpp

index 948c622..2608307 100644 (file)
@@ -328,6 +328,8 @@ _ContentManagerImpl::CreateContent(const ContentInfo& contentInfo)
        ContentType inputType = pContentData->contentType;
        ContentType sysType = _ContentManagerUtilImpl::CheckContentType(pContentData->contentPath, true);
 
+       ClearLastResult();
+
        if (inputType != sysType)
        {
                if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN))
@@ -444,6 +446,8 @@ _ContentManagerImpl::CreateContent(const ByteBuffer& byteBuffer, const String& d
                ContentType sysType = _ContentManagerUtilImpl::CheckContentType(destinationPath, true);
                ContentType inputType = pContentData->contentType;
 
+               ClearLastResult();
+
                if (inputType != sysType)
                {
                        if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN))
@@ -572,6 +576,8 @@ _ContentManagerImpl::CreateContent(const String& sourcePath, const String& desti
                ContentType sysType = _ContentManagerUtilImpl::CheckContentType(destinationPath, true);
                ContentType inputType = pContentData->contentType;
 
+               ClearLastResult();
+
                if (inputType != sysType)
                {
                        if (!(inputType == CONTENT_TYPE_OTHER && sysType == CONTENT_TYPE_UNKNOWN))
@@ -1134,6 +1140,8 @@ _ContentManagerImpl::SaveDataToDatabase(const media_info_h pMediaInfo,
 
                        delete pImageMetadata;
                }
+
+               ClearLastResult();
        }
 
        int val = 0;