Merge pull request #4371 from sbwalker/dev

ensure ModuleDefinition exists
This commit is contained in:
Shaun Walker 2024-06-28 17:26:58 -04:00 committed by GitHub
commit 9901816fb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ namespace Oqtane.Managers.Search
}
var module = pageModule.Module;
if (module.ModuleDefinition.ServerManagerType != "")
if (module.ModuleDefinition != null && module.ModuleDefinition.ServerManagerType != "")
{
_logger.LogDebug($"Search: Begin index module {module.ModuleId}.");
var type = Type.GetType(module.ModuleDefinition.ServerManagerType);