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:
parent
e0790cbc2a
commit
27562a4787
@ -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
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user