mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
fix null references
This commit is contained in:
parent
55b770ac2f
commit
d5d9ef129c
@ -324,6 +324,15 @@ namespace MediaBrowser.ServerApplication
|
||||
{
|
||||
// Not there, no big deal
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Directory.Delete(Path.Combine(ApplicationPaths.DataPath, "tmdb-movies"), true);
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
// Not there, no big deal
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -457,6 +466,8 @@ namespace MediaBrowser.ServerApplication
|
||||
await Task.WhenAll(itemsTask, displayPreferencesTask, userdataTask).ConfigureAwait(false);
|
||||
progress.Report(100);
|
||||
|
||||
SetStaticProperties();
|
||||
|
||||
await ((UserManager)UserManager).Initialize().ConfigureAwait(false);
|
||||
|
||||
SetKernelProperties();
|
||||
@ -490,8 +501,6 @@ namespace MediaBrowser.ServerApplication
|
||||
private void SetKernelProperties()
|
||||
{
|
||||
LocalizedStrings.StringFiles = GetExports<LocalizedStringData>();
|
||||
|
||||
SetStaticProperties();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -149,7 +149,7 @@
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="app.manifest" />
|
||||
<None Include="Native\RegisterServer.bat" />
|
||||
<EmbeddedResource Include="Native\RegisterServer.bat" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user