Update change log and spec for wrt-plugins-tizen_0.4.74
[framework/web/wrt-plugins-tizen.git] / src / Calendar / JSCalendarItemProperties.cpp
index 0391201..855e987 100755 (executable)
@@ -196,14 +196,14 @@ JSValueRef JSCalendarItemProperties::convertToString(JSContextRef context,
     CalendarItemPropertiesPrivObject *privateObject =
         static_cast<CalendarItemPropertiesPrivObject*>(JSObjectGetPrivate(thisObject));
 
-    TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CONVERT_TO_STRING);
-
     Try
     {
         if (!privateObject) {
             ThrowMsg(ConversionException, "Object is null.");
         }
 
+               TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CONVERT_TO_STRING);
+
         CalendarEventPtr item = privateObject->getObject();
         if (!item) {
             ThrowMsg(ConversionException, "Parameter conversion failed.");
@@ -274,14 +274,14 @@ JSValueRef JSCalendarItemProperties::clone(JSContextRef context,
     CalendarItemPropertiesPrivObject *privateObject =
         static_cast<CalendarItemPropertiesPrivObject*>(JSObjectGetPrivate(thisObject));
 
-    TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CLONE);
-
     Try
     {
         if (!privateObject) {
             ThrowMsg(ConversionException, "Object is null.");
         }
 
+               TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_CLONE);
+
         CalendarEventPtr item = privateObject->getObject(); // item to copy
         if (!item) {
             ThrowMsg(ConversionException, "Parameter conversion failed.");