Update change log and spec for wrt-plugins-tizen_0.4.74
[framework/web/wrt-plugins-tizen.git] / src / Calendar / JSCalendarEvent.cpp
index 6ff19c7..31219fd 100755 (executable)
@@ -284,14 +284,14 @@ JSValueRef JSCalendarEvent::expandRecurrence(JSContextRef context,
     CalendarEventPrivObject *privateObject =
         static_cast<CalendarEventPrivObject*>(JSObjectGetPrivate(thisObject));
 
-    TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_EXPAND_RECURRENCE);
-
     Try
     {
         if (!privateObject) {
             ThrowMsg(ConversionException, "Object is null.");
         }
 
+               TIZEN_CHECK_ACCESS(context, exception, privateObject, CALENDAR_FUNCTION_API_EXPAND_RECURRENCE);
+
         CalendarEventPtr event = privateObject->getObject();
         if (!event) {
             ThrowMsg(ConversionException, "Parameter conversion failed.");