mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add null checks to EnsureDates
This commit is contained in:
parent
594ed864c6
commit
cb6350728d
@ -133,6 +133,19 @@ namespace MediaBrowser.Controller.Resolvers
|
|||||||
/// <param name="includeCreationTime">if set to <c>true</c> [include creation time].</param>
|
/// <param name="includeCreationTime">if set to <c>true</c> [include creation time].</param>
|
||||||
public static void EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args, bool includeCreationTime)
|
public static void EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args, bool includeCreationTime)
|
||||||
{
|
{
|
||||||
|
if (fileSystem == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("fileSystem");
|
||||||
|
}
|
||||||
|
if (item == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("item");
|
||||||
|
}
|
||||||
|
if (args == null)
|
||||||
|
{
|
||||||
|
throw new ArgumentNullException("args");
|
||||||
|
}
|
||||||
|
|
||||||
// See if a different path came out of the resolver than what went in
|
// See if a different path came out of the resolver than what went in
|
||||||
if (!string.Equals(args.Path, item.Path, StringComparison.OrdinalIgnoreCase))
|
if (!string.Equals(args.Path, item.Path, StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user