The Free Software Media System - Server Backend & API
Apply review suggestion
Shadowghost6300d01fcceb
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex ecc2a2c910..0aa943270e 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -3623,8 +3623,12 @@ namespace Emby.Server.Implementations.DataclauseBuilder.Append("(guid in (select itemid from People where Name = (select Name from TypedBaseItems where guid=").Append(paramName).Append("))) OR ");- query.PersonIds[i].TryWriteBytes(idBytes);- statement?.TryBind(paramName, idBytes);++ if (statement is not null)+ {+ query.PersonIds[i].TryWriteBytes(idBytes);+ statement.TryBind(paramName, idBytes);+ }}// Remove last " OR "