chore: check if internalname is null for devplugin

This commit is contained in:
goat 2022-08-24 23:07:12 +02:00
parent c1564c915e
commit f8e51feb13
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B

View file

@ -398,6 +398,13 @@ internal partial class PluginManager : IDisposable, IServiceType
// Manifests are not required for devPlugins. the Plugin type will handle any null manifests.
var manifestFile = LocalPluginManifest.GetManifestFile(dllFile);
var manifest = manifestFile.Exists ? LocalPluginManifest.Load(manifestFile) : null;
if (manifest != null && manifest.InternalName.IsNullOrEmpty())
{
Log.Error("InternalName for dll at {Path} was null", manifestFile.FullName);
continue;
}
devPluginDefs.Add(new PluginDef(dllFile, manifest, true));
}