mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 09:08:34 +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
|
// ReSharper disable once MemberCanBeMadeStatic.Local - idc
|
||||||
protected virtual void Render(ILedGroup ledGroup)
|
protected virtual void Render(ILedGroup ledGroup)
|
||||||
{
|
{
|
||||||
|
if (ledGroup == null) return;
|
||||||
|
|
||||||
IList<CorsairLed> leds = ledGroup.GetLeds().ToList();
|
IList<CorsairLed> leds = ledGroup.GetLeds().ToList();
|
||||||
|
|
||||||
IBrush brush = ledGroup.Brush;
|
IBrush brush = ledGroup.Brush;
|
||||||
|
if (brush == null) return;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user