Fixed a potential null pointer exception in calendar event creation

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

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

Loading…
Cancel
Save