mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -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
|
// 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);
|
await Task.WhenAll(itemsTask, displayPreferencesTask, userdataTask).ConfigureAwait(false);
|
||||||
progress.Report(100);
|
progress.Report(100);
|
||||||
|
|
||||||
|
SetStaticProperties();
|
||||||
|
|
||||||
await ((UserManager)UserManager).Initialize().ConfigureAwait(false);
|
await ((UserManager)UserManager).Initialize().ConfigureAwait(false);
|
||||||
|
|
||||||
SetKernelProperties();
|
SetKernelProperties();
|
||||||
@ -490,8 +501,6 @@ namespace MediaBrowser.ServerApplication
|
|||||||
private void SetKernelProperties()
|
private void SetKernelProperties()
|
||||||
{
|
{
|
||||||
LocalizedStrings.StringFiles = GetExports<LocalizedStringData>();
|
LocalizedStrings.StringFiles = GetExports<LocalizedStringData>();
|
||||||
|
|
||||||
SetStaticProperties();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -149,7 +149,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
<None Include="app.manifest" />
|
<None Include="app.manifest" />
|
||||||
<None Include="Native\RegisterServer.bat" />
|
<EmbeddedResource Include="Native\RegisterServer.bat" />
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user