diff --git a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksHelper.java b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksHelper.java index 6faf7cc61..7c34a25a9 100644 --- a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksHelper.java +++ b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksHelper.java @@ -89,7 +89,7 @@ public class SubtasksHelper { String serialized; if (tlm != null) serialized = tlm.getValue(TaskListMetadata.TASK_IDS); - if (tagData != null) + else if (tagData != null) serialized = convertTreeToRemoteIds(tagData.getValue(TagData.TAG_ORDERING)); else serialized = "[]"; //$NON-NLS-1$ @@ -116,7 +116,7 @@ public class SubtasksHelper { @SuppressWarnings("nls") public static String[] getStringIdArray(String serializedTree) { ArrayList ids = new ArrayList(); - String[] values = serializedTree.split("[\\[\\],\\s]"); // Split on [ ] , or whitespace chars + String[] values = serializedTree.split("[\\[\\],\"\\s]"); // Split on [ ] , or whitespace chars for (String idString : values) { if (!TextUtils.isEmpty(idString)) ids.add(idString);