diff --git a/astrid/plugin-src/com/todoroo/astrid/gcal/GCalHelper.java b/astrid/plugin-src/com/todoroo/astrid/gcal/GCalHelper.java index 49ff16b3b..40c7d827e 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gcal/GCalHelper.java +++ b/astrid/plugin-src/com/todoroo/astrid/gcal/GCalHelper.java @@ -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()); } }