mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 06:29:44 +08:00
Fixed null reference exception on context menu buttons (#4586)
This commit is contained in:
parent
f46b876fd6
commit
16e56c4edb
@ -115,7 +115,7 @@ namespace Wox.ViewModel
|
||||
}
|
||||
|
||||
// Result does not contain any context menu items - we don't need to show the context menu ListView at all.
|
||||
if (ContextMenuItems.Count > 0)
|
||||
if (ContextMenuItems != null && ContextMenuItems.Count > 0)
|
||||
{
|
||||
AreContextButtonsActive = IsSelected || IsHovered;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user