Blow up if task doesn't have a list

pull/1004/head
Alex Baker 4 years ago
parent ee52572607
commit 5af6c8273c

@ -19,6 +19,7 @@ import com.todoroo.astrid.utility.TitleParser;
import java.util.ArrayList;
import java.util.Map;
import javax.inject.Inject;
import org.tasks.BuildConfig;
import org.tasks.R;
import org.tasks.data.CaldavDao;
import org.tasks.data.CaldavTask;
@ -108,6 +109,8 @@ public class TaskCreator {
} else if (remoteList instanceof CaldavFilter) {
caldavDao.insert(
task, new CaldavTask(task.getId(), ((CaldavFilter) remoteList).getUuid()), addToTop);
} else if (BuildConfig.DEBUG) {
throw new IllegalStateException();
}
}

Loading…
Cancel
Save