From 9abb5e5c2bf3d5a5df92e202e1f1f2b6ac7aa2fc Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Wed, 3 Apr 2013 16:42:25 -0700 Subject: [PATCH] Minor fix to migration --- .../com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java index d68b9a5e0..e59d1c70d 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/AstridNewSyncMigrator.java @@ -590,7 +590,10 @@ public class AstridNewSyncMigrator { oe.clear(); oe.setValue(OutstandingEntry.ENTITY_ID_PROPERTY, id); oe.setValue(OutstandingEntry.COLUMN_STRING_PROPERTY, property.name); - oe.setValue(OutstandingEntry.VALUE_STRING_PROPERTY, instance.getValue(property).toString()); + Object value = instance.getValue(property); + if (value == null) + value = ""; + oe.setValue(OutstandingEntry.VALUE_STRING_PROPERTY, value.toString()); oe.setValue(OutstandingEntry.CREATED_AT_PROPERTY, now); oeDao.createNew(oe); }