From ea1b21338524fbc037d680cbbcbe28a19216d8ef Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 1 Nov 2012 15:23:41 -0700 Subject: [PATCH] Clear metadata when reading indent --- .../com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java index 17091d42f..8611bd533 100644 --- a/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java +++ b/astrid/plugin-src/com/todoroo/astrid/subtasks/SubtasksMetadataMigration.java @@ -89,6 +89,7 @@ public class SubtasksMetadataMigration { Metadata item = new Metadata(); Node root = new Node(-1, null, -1); for (; !cursor.isAfterLast(); cursor.moveToNext()) { + item.clear(); item.readFromCursor(cursor); if (!item.getValue(SubtasksMetadata.TAG).equals(tag)) break;