Fix nullref exception

pull/2676/head
Vasily 5 years ago
parent 02da312f8a
commit bfb644d5f5

13
.vscode/tasks.json vendored

@ -10,6 +10,17 @@
"${workspaceFolder}/Jellyfin.Server/Jellyfin.Server.csproj"
],
"problemMatcher": "$msCompile"
},
{
"label": "api tests",
"command": "dotnet",
"type": "process",
"args": [
"test",
"${workspaceFolder}/tests/MediaBrowser.Api.Tests/MediaBrowser.Api.Tests.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
}

@ -111,12 +111,6 @@ namespace Emby.Server.Implementations.Library
/// <value>The comparers.</value>
private IBaseItemComparer[] Comparers { get; set; }
/// <summary>
/// Gets or sets the active item repository
/// </summary>
/// <value>The item repository.</value>
public IItemRepository ItemRepository { get; set; }
/// <summary>
/// Gets or sets the active image processor
/// </summary>
@ -1843,7 +1837,7 @@ namespace Emby.Server.Implementations.Library
x.Hash = blurhash;
});
ItemRepository.SaveImages(item);
_itemRepository.SaveImages(item);
RegisterItem(item);
}
@ -1918,7 +1912,7 @@ namespace Emby.Server.Implementations.Library
{
Task.Run(() =>
{
var items = ItemRepository.GetItemList(new InternalItemsQuery {
var items = _itemRepository.GetItemList(new InternalItemsQuery {
Recursive = true
});
foreach (var item in items)

Loading…
Cancel
Save