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.");