aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Plugins/PluginManager.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-05-30 10:11:05 +0200
committerGitHub <noreply@github.com>2021-05-30 10:11:05 +0200
commit9712fa85c4651ccb0fc2b0e206dac8d17295a016 (patch)
tree6cadaf9b0d3259778f5f013dc2c2e3620eff13eb /Emby.Server.Implementations/Plugins/PluginManager.cs
parent71c98d2f81f8f1091f996d9150cf732224f798d4 (diff)
parent0bc06014427e36a770adeda66392d08147658ea8 (diff)
Merge pull request #6121 from Bond-009/warn52
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations/Plugins/PluginManager.cs')
-rw-r--r--Emby.Server.Implementations/Plugins/PluginManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.cs
index 48281b75f..16a2bd615 100644
--- a/Emby.Server.Implementations/Plugins/PluginManager.cs
+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs
@@ -455,7 +455,8 @@ namespace Emby.Server.Implementations.Plugins
try
{
_logger.LogDebug("Creating instance of {Type}", type);
- var instance = (IPlugin)ActivatorUtilities.CreateInstance(_appHost.ServiceProvider, type);
+ // _appHost.ServiceProvider is already assigned when we create the plugins
+ var instance = (IPlugin)ActivatorUtilities.CreateInstance(_appHost.ServiceProvider!, type);
if (plugin == null)
{
// Create a dummy record for the providers.