diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs index a6edf33023a..d7b4123922e 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/ChromiumBookmarkLoader.cs @@ -26,7 +26,7 @@ protected List LoadBookmarks(string browserDataPath, string name) } return bookmarks; } - + protected List LoadBookmarksFromFile(string path, string source) { if (!File.Exists(path)) @@ -44,7 +44,9 @@ protected List LoadBookmarksFromFile(string path, string source) private void EnumerateFolderBookmark(JsonElement folderElement, List bookmarks, string source) { - foreach (var subElement in folderElement.GetProperty("children").EnumerateArray()) + if (!folderElement.TryGetProperty("children", out var childrenElement)) + return; + foreach (var subElement in childrenElement.EnumerateArray()) { switch (subElement.GetProperty("type").GetString()) {