From d3d8b9611a878ef438024db741cae3e0001bc25b Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Mon, 11 May 2020 07:58:46 -0500 Subject: [PATCH] Fix crash when cloning tasks --- .../main/java/com/todoroo/astrid/service/TaskDuplicator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/todoroo/astrid/service/TaskDuplicator.java b/app/src/main/java/com/todoroo/astrid/service/TaskDuplicator.java index 74f01ce2b..0cbeaf96a 100644 --- a/app/src/main/java/com/todoroo/astrid/service/TaskDuplicator.java +++ b/app/src/main/java/com/todoroo/astrid/service/TaskDuplicator.java @@ -2,6 +2,7 @@ package com.todoroo.astrid.service; import static com.google.common.collect.Lists.transform; import static com.todoroo.andlib.utility.DateUtilities.now; +import static com.todoroo.astrid.data.Task.NO_UUID; import com.todoroo.astrid.dao.TaskDao; import com.todoroo.astrid.data.Task; @@ -76,7 +77,7 @@ public class TaskDuplicator { clone.setModificationDate(now()); clone.setCompletionDate(0L); clone.setCalendarURI(""); - clone.setUuid(null); + clone.setUuid(NO_UUID); clone.suppressSync(); clone.suppressRefresh(); taskDao.createNew(clone);