Merge pull request #10379 from Bond-009/emptyguid

This commit is contained in:
Bond-009 2023-10-11 23:05:18 +02:00 committed by GitHub
commit c02f2d4791
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -943,6 +943,12 @@ namespace MediaBrowser.Providers.Manager
/// <inheritdoc/>
public void QueueRefresh(Guid itemId, MetadataRefreshOptions options, RefreshPriority priority)
{
ArgumentNullException.ThrowIfNull(itemId);
if (itemId.Equals(default))
{
throw new ArgumentException("Guid can't be empty", nameof(itemId));
}
if (_disposed)
{
return;