Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected List<Bookmark> LoadBookmarks(string browserDataPath, string name)
}
return bookmarks;
}

protected List<Bookmark> LoadBookmarksFromFile(string path, string source)
{
if (!File.Exists(path))
Expand All @@ -44,7 +44,9 @@ protected List<Bookmark> LoadBookmarksFromFile(string path, string source)

private void EnumerateFolderBookmark(JsonElement folderElement, List<Bookmark> 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())
{
Expand Down