We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf1762 commit a64eabdCopy full SHA for a64eabd
app/src/main/kotlin/com/simplemobiletools/notes/pro/extensions/String.kt
@@ -8,7 +8,7 @@ fun String.parseChecklistItems(): ArrayList<ChecklistItem>? {
8
if (startsWith("[{") && endsWith("}]")) {
9
try {
10
val checklistItemType = object : TypeToken<List<ChecklistItem>>() {}.type
11
- return Gson().fromJson<ArrayList<ChecklistItem>>(this, checklistItemType) ?: ArrayList(1)
+ return Gson().fromJson<ArrayList<ChecklistItem>>(this, checklistItemType) ?: null
12
} catch (e: Exception) {
13
}
14
0 commit comments