Fix for CompatTC Fail submit/tizen_2.2/20130716.180501 submit/tizen_2.2/20130717.053424
authorhs321.lee <hs321.lee@samsung.com>
Tue, 16 Jul 2013 15:20:46 +0000 (00:20 +0900)
committerhs321.lee <hs321.lee@samsung.com>
Tue, 16 Jul 2013 15:20:52 +0000 (00:20 +0900)
Change-Id: Icddd021aba92ed0ea887359f069099abee0972b4
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
src/FSclReminder.cpp

index 65da1e1..897b3cc 100644 (file)
@@ -172,6 +172,9 @@ Reminder::SetSoundFile(const String& filePath)
        }
        else
        {
+               SysTryReturnResult(NID_SCL, File::IsFileExist(filePath), E_INVALID_ARG
+                                       , "Invalid argument is used. The length of the filePath exceeds the maximum length or the file path is invalid or the file does not exist.");
+
                result r = E_SUCCESS;
                String tmpFilePath;
 
@@ -185,9 +188,6 @@ Reminder::SetSoundFile(const String& filePath)
                        tmpFilePath = filePath;
                }
 
-               SysTryReturnResult(NID_SCL, File::IsFileExist(tmpFilePath), E_INVALID_ARG
-                                       , "Invalid argument is used. The length of the filePath exceeds the maximum length or the file path is invalid or the file does not exist.");
-
                __soundFilePath = tmpFilePath;
        }