Skip to content

Commit 657e6ae

Browse files
committed
add null-safe comparison for glyph
1 parent 4ddb164 commit 657e6ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Flow.Launcher/Storage/QueryHistory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public void Add(Result result)
7777
if (existingHistoryItem.IcoPath != result.IcoPath)
7878
existingHistoryItem.IcoPath = result.IcoPath;
7979

80-
if (existingHistoryItem.Glyph.Glyph != result.Glyph.Glyph
81-
|| existingHistoryItem.Glyph.FontFamily != result.Glyph.FontFamily)
80+
if (existingHistoryItem.Glyph?.Glyph != result.Glyph?.Glyph
81+
|| existingHistoryItem.Glyph?.FontFamily != result.Glyph?.FontFamily)
8282
existingHistoryItem.Glyph = result.Glyph;
8383
}
8484
else

0 commit comments

Comments
 (0)