Skip to content

Commit

Permalink
LPS-30007
Browse files Browse the repository at this point in the history
  • Loading branch information
petershin authored and brianchandotcom committed Sep 18, 2012
1 parent e7a4e84 commit f34a815
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions portal-impl/src/com/liferay/portal/verify/VerifyCalendar.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portlet.calendar.model.CalEvent;
import com.liferay.portlet.calendar.service.CalEventLocalServiceUtil;

Expand Down Expand Up @@ -128,8 +129,12 @@ protected void verifyRecurrence() throws Exception {
long eventId = rs.getLong("eventId");
String recurrence = rs.getString("recurrence");

TZSRecurrence recurrenceObj =
(TZSRecurrence)jsonSerializer.fromJSON(recurrence);
TZSRecurrence recurrenceObj = null;

if (Validator.isNotNull(recurrence)) {
recurrenceObj =
(TZSRecurrence)jsonSerializer.fromJSON(recurrence);
}

String newRecurrence = JSONFactoryUtil.serialize(recurrenceObj);

Expand Down

0 comments on commit f34a815

Please sign in to comment.