1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-12 16:58:29 +00:00

Added missing null-check while rendering groups

This commit is contained in:
Darth Affe 2017-01-28 12:16:46 +01:00
parent e0790cbc2a
commit 27562a4787

View File

@ -226,8 +226,12 @@ namespace CUE.NET.Devices.Generic
// ReSharper disable once MemberCanBeMadeStatic.Local - idc
protected virtual void Render(ILedGroup ledGroup)
{
if (ledGroup == null) return;
IList<CorsairLed> leds = ledGroup.GetLeds().ToList();
IBrush brush = ledGroup.Brush;
if (brush == null) return;
try
{