Merge pull request #721 from PepperDash/hotfix/plugin-loading

adds check for abstract class before attempting to create instance
This commit is contained in:
Andrew Welker 2021-06-16 15:17:32 -06:00 committed by GitHub
commit 319d8f99c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,7 +375,7 @@ namespace PepperDash.Essentials
{
try
{
if (typeof (IPluginDeviceFactory).IsAssignableFrom(type))
if (typeof (IPluginDeviceFactory).IsAssignableFrom(type) && !type.IsAbstract)
{
var plugin =
(IPluginDeviceFactory) Crestron.SimplSharp.Reflection.Activator.CreateInstance(type);