Fixed a potential null pointer exception in calendar event creation

pull/14/head
Sam Bosley 13 years ago
parent 0db201c689
commit 1f1d6050f8

@ -40,7 +40,8 @@ public class GCalHelper {
if (gcalCreateEventEnabled) {
ContentResolver cr = ContextManager.getContext().getContentResolver();
Uri calendarUri = GCalHelper.createTaskEvent(t, cr, new ContentValues());
t.setValue(Task.CALENDAR_URI, calendarUri.toString());
if (calendarUri != null)
t.setValue(Task.CALENDAR_URI, calendarUri.toString());
}
}

Loading…
Cancel
Save