Added null check on BrandingInfo to prevent null reference exception.

This commit is contained in:
dkattan 2021-12-03 14:36:09 -06:00
parent 199fcf8bd3
commit 5814899b09

View File

@ -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);