diff --git a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt index a7be6176..5ecf3bf2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt +++ b/app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt @@ -8,7 +8,7 @@ fun String.parseChecklistItems(): ArrayList? { if (startsWith("[{") && endsWith("}]")) { try { val checklistItemType = object : TypeToken>() {}.type - return Gson().fromJson>(this, checklistItemType) ?: ArrayList(1) + return Gson().fromJson>(this, checklistItemType) ?: null } catch (e: Exception) { } }