Fix for CompatTC Fail
[framework/osp/social.git] / 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;
        }