Skip to content

Commit

Permalink
Fixed a bug that could lead to a crash in rare cases
Browse files Browse the repository at this point in the history
  • Loading branch information
westerlind committed Sep 4, 2024
1 parent 22c3250 commit 23add72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ I personally use cmd+option+space.</string>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.0.12</string>
<string>2.0.13</string>
<key>webaddress</key>
<string>https://github.com/westerlind/alfred-raindrop-search/</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion raindrop_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func sub_collection_names(raindrop_collections_sublevel []interface{}, parent_id
if item["parent"] != nil {
item_parent = item["parent"].(map[string]interface{})
}
if int(item_parent["$id"].(float64)) == parent_id {
if item_parent != nil && item_parent["$id"] != nil && int(item_parent["$id"].(float64)) == parent_id {
names += item["title"].(string) + " " + sub_collection_names(raindrop_collections_sublevel, int(item["_id"].(float64)))
}
}
Expand Down

0 comments on commit 23add72

Please sign in to comment.