From fe45e603a0162e1cd7ae68133b8a2954efbf93ad Mon Sep 17 00:00:00 2001 From: Tim Su Date: Tue, 13 Jul 2010 01:51:20 -0700 Subject: [PATCH] Fix for null recurrences in upgraded tasks --- .../com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java b/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java index 4e97b4cf6..ac17ffba7 100644 --- a/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java +++ b/astrid/plugin-src/com/todoroo/astrid/repeats/RepeatTaskCompleteListener.java @@ -45,7 +45,7 @@ public class RepeatTaskCompleteListener extends BroadcastReceiver { return; String recurrence = task.getValue(Task.RECURRENCE); - if(recurrence.length() > 0) { + if(recurrence != null && recurrence.length() > 0) { DateValue repeatFrom; Date repeatFromDate = new Date();