From ac9e782527e7d2ec57ff9a1f248f9de641082abd Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 24 May 2023 09:21:03 -0500 Subject: [PATCH] Fix crash on default Google Task list migration --- app/src/main/java/org/tasks/db/Migrations.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/db/Migrations.kt b/app/src/main/java/org/tasks/db/Migrations.kt index f0bc19cd9..e32951a91 100644 --- a/app/src/main/java/org/tasks/db/Migrations.kt +++ b/app/src/main/java/org/tasks/db/Migrations.kt @@ -603,7 +603,7 @@ object Migrations { (defaultList?.size == 2) && (defaultList[0].toIntOrNull()?.equals(DefaultFilterProvider.TYPE_GOOGLE_TASKS) == true) ) { - database.query("SELECT `gtl_remote_id` FROM `google_task_lists` WHERE `gtl_id` = ${defaultList[1]}").use { cursor -> + database.query("SELECT `gtl_remote_id` FROM `google_task_lists` WHERE `gtl_id` = '${defaultList[1]}'").use { cursor -> if (cursor.moveToFirst()) { cursor.getStringOrNull(0)?.let { uuid -> prefs.setString(R.string.p_default_list, "${DefaultFilterProvider.TYPE_GOOGLE_TASKS}:$uuid")