From 4e05e74be00888616676f17381eb87fa740380d6 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 24 Sep 2012 10:44:53 -0700 Subject: [PATCH] Minor unit test tweak --- .../src/com/todoroo/astrid/sync/Astrid44MigrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests-sync/src/com/todoroo/astrid/sync/Astrid44MigrationTest.java b/tests-sync/src/com/todoroo/astrid/sync/Astrid44MigrationTest.java index ce62bc190..2df6379fe 100644 --- a/tests-sync/src/com/todoroo/astrid/sync/Astrid44MigrationTest.java +++ b/tests-sync/src/com/todoroo/astrid/sync/Astrid44MigrationTest.java @@ -102,7 +102,8 @@ public class Astrid44MigrationTest extends NewSyncTestCase { for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) { instance.clear(); instance.readPropertiesFromCursor(cursor); - if (instance.getValue(RemoteModel.REMOTE_ID_PROPERTY) == 0) { + Long remoteId = instance.getValue(RemoteModel.REMOTE_ID_PROPERTY); + if (remoteId == null || remoteId == 0) { fail(instance.getClass().getName() + instance.getId() + " didn't have a remote id"); } }