From faf68c032bdece8c9c5a4996605f6fe08aba4afc Mon Sep 17 00:00:00 2001 From: David Brett Date: Fri, 10 Apr 2026 22:34:42 +0200 Subject: [PATCH] fix: add null checks to categorization of plugins in plugin store --- Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs b/Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs index 177534b612e..ca6b29ad2be 100644 --- a/Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs +++ b/Flow.Launcher/ViewModel/PluginStoreItemViewModel.cs @@ -46,11 +46,13 @@ public string DefaultCategory get { string category = None; - if (DateTime.Now - _newPlugin.LatestReleaseDate < TimeSpan.FromDays(7)) + if (_newPlugin.LatestReleaseDate is not null && + DateTime.Now - _newPlugin.LatestReleaseDate < TimeSpan.FromDays(7)) { category = RecentlyUpdated; } - if (DateTime.Now - _newPlugin.DateAdded < TimeSpan.FromDays(7)) + if (_newPlugin.DateAdded is not null && + DateTime.Now - _newPlugin.DateAdded < TimeSpan.FromDays(7)) { category = NewRelease; }