mirror of https://github.com/jellyfin/jellyfin.git
Merge pull request #10379 from Bond-009/emptyguid
This commit is contained in:
commit
c02f2d4791
|
@ -943,6 +943,12 @@ namespace MediaBrowser.Providers.Manager
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public void QueueRefresh(Guid itemId, MetadataRefreshOptions options, RefreshPriority priority)
|
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)
|
if (_disposed)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue