mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Added null check on BrandingInfo to prevent null reference exception.
This commit is contained in:
parent
199fcf8bd3
commit
5814899b09
@ -49,7 +49,7 @@ namespace Remotely.Desktop.Win.Services
|
||||
|
||||
Icon icon;
|
||||
|
||||
if (_deviceInitService.BrandingInfo.Icon?.Any() == true)
|
||||
if (_deviceInitService.BrandingInfo?.Icon?.Any() == true)
|
||||
{
|
||||
using var ms = new MemoryStream(_deviceInitService.BrandingInfo.Icon);
|
||||
using var bitmap = new Bitmap(ms);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user