BUG-2644: Fixed a NPRE when exporting to Powerpoint when it's not running yet.

This commit is contained in:
Robin Krom 2020-07-29 10:34:52 +02:00
commit 90d1e114e0

View file

@ -243,7 +243,7 @@ namespace GreenshotOfficePlugin.OfficeExport
// Ignore, probably no PowerPoint running
return null;
}
if (powerPointApplication.ComObject != null)
if (powerPointApplication?.ComObject != null)
{
InitializeVariables(powerPointApplication);
}