jellyfin/Emby.Server.Implementations
Bond_009 8045a488ce Fix possible ArgumentNullException
```
  Error Message:
   System.ArgumentNullException : Value cannot be null. (Parameter 'source')
  Stack Trace:
     at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
   at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 475
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 618
   at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 536
   at Emby.Server.Implementations.Library.LibraryManager.GetUserRootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 812
   at Emby.Server.Implementations.Library.LibraryManager.GetCollectionFolders(BaseItem item) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2080
   at Emby.Server.Implementations.Library.LibraryManager.GetLibraryOptions(BaseItem item) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2116
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers) in /home/vsts/work/1/s/MediaBrowser.Providers/Manager/ProviderManager.cs:line 672
   at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadata(BaseItem item, ItemUpdateType updateType) in /home/vsts/work/1/s/MediaBrowser.Providers/Manager/ProviderManager.cs:line 655
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 2017
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 1975
   at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 775
   at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in /home/vsts/work/1/s/Emby.Server.Implementations/Library/LibraryManager.cs:line 180
   at Emby.Server.Implementations.IO.LibraryMonitor.Start() in /home/vsts/work/1/s/Emby.Server.Implementations/IO/LibraryMonitor.cs:line 135
   at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in /home/vsts/work/1/s/Emby.Server.Implementations/IO/LibraryMonitorStartup.cs:line 26
   at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in /home/vsts/work/1/s/Emby.Server.Implementations/ApplicationHost.cs:line 518
   at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks)
   at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in /home/vsts/work/1/s/Emby.Server.Implementations/ApplicationHost.cs:line 502
   at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in /home/vsts/work/1/s/tests/Jellyfin.Server.Integration.Tests/JellyfinApplicationFactory.cs:line 101
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer()
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options)
   at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient()
   at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in /home/vsts/work/1/s/tests/Jellyfin.Server.Integration.Tests/Controllers/ActivityLogControllerTests.cs:line 21
--- End of stack trace from previous location ---
```
2021-04-12 22:01:35 +02:00
..
AppBase Use FileShare.None when creating files 2021-03-07 14:43:28 +01:00
Archiving Document and clean up ZipClient.cs 2020-04-14 15:16:04 -04:00
Branding Apply code review suggestions 2020-04-19 13:39:12 -04:00
Channels FxCop -> Net Analyzers (part 2) 2021-03-13 22:33:28 +01:00
Collections Merge branch 'master' of https://github.com/danieladov/jellyfin 2021-03-13 20:35:52 +01:00
Configuration fix ssl certificate cannot be saved 2020-12-11 23:52:09 +08:00
Cryptography Updated based on review feedback 2020-11-13 18:04:06 -07:00
Data move IsPlayed to outerquery 2021-04-09 11:32:19 +02:00
Devices Clean up DeviceManager and don't store capabilities on disk 2020-11-19 09:38:54 -05:00
Dto Create BaseItemKind enum 2021-02-10 17:09:23 -07:00
EntryPoints Improve tests 2021-02-23 16:45:10 +01:00
HttpServer add simple auth handling to websocketmanager 2021-04-05 15:12:47 +02:00
Images Merge pull request #4341 from Bond-009/minor6 2020-11-02 11:10:39 -05:00
IO Update Emby.Server.Implementations/IO/ManagedFileSystem.cs 2021-04-10 00:16:37 +02:00
Library Fix possible ArgumentNullException 2021-04-12 22:01:35 +02:00
LiveTv Merge pull request #5520 from Bond-009/hdhomerun2 2021-04-08 00:27:58 +02:00
Localization Translated using Weblate (Danish) 2021-03-22 13:34:36 -04:00
MediaEncoder Remove DVDs from files exempt from chapter image extraction 2021-03-25 13:16:09 +01:00
Net Fix warnings 2020-07-24 16:37:54 +02:00
Playlists Reduce RequestHelpers.Split usage and remove RequestHelpers.GetGuids usage. 2020-11-16 20:29:46 -07:00
Plugins Keep plugin status after update. 2021-04-06 20:59:47 +01:00
Properties Add tests for HdHomerunHost.GetModelInfo 2020-12-08 18:53:38 +01:00
QuickConnect Remove Hex class as the BCL has one now 2020-11-25 23:40:31 +01:00
ScheduledTasks Use sync Serialize when writing scheduled tasks to disk 2021-04-10 23:54:35 +02:00
Security Fix SA 1116 warnings 2020-10-12 20:05:11 +02:00
Serialization Remove custom Json serializer 2020-12-23 13:24:34 +01:00
Session Minor improvements 2021-02-21 02:49:52 +01:00
Sorting Include specials in the calculation for the "Next Up" episode. Fixes #1479 2021-02-28 21:21:26 +01:00
SyncPlay Merge pull request #4716 from OancaAndrei/syncplay-new-auth-policies 2020-12-13 16:58:28 -05:00
TV Apply suggested formatting changes 2021-03-05 22:51:08 +01:00
Udp Improve tests 2021-02-23 16:45:10 +01:00
Updates Update Emby.Server.Implementations/Updates/InstallationManager.cs 2021-04-08 14:38:25 +01:00
ApplicationHost.cs Fix random failing of tests 2021-04-12 00:28:17 +02:00
ConfigurationOptions.cs Change default value for allow duplicates in playlist option to False 2020-09-10 10:03:08 -07:00
Emby.Server.Implementations.csproj Enable NetAnalyzers for more projects 2021-04-06 20:02:06 +02:00
IStartupOptions.cs fix 2021-02-27 23:32:22 +00:00
ServerApplicationPaths.cs Minor improvements 2020-10-17 16:01:36 +02:00