1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00

Added missing null-check while rendering groups

This commit is contained in:
Darth Affe 2017-01-28 12:18:57 +01:00
parent a3c1f5a684
commit 2678d3f56d

View File

@ -93,7 +93,7 @@ namespace RGB.NET.Core
IList<Led> leds = ledGroup.GetLeds().ToList();
IBrush brush = ledGroup.Brush;
if (!brush.IsEnabled) return;
if ((brush == null) || !brush.IsEnabled) return;
try
{