fix null references

This commit is contained in:
Luke Pulverenti 2014-02-22 16:05:56 -05:00
parent 55b770ac2f
commit d5d9ef129c
2 changed files with 12 additions and 3 deletions

View File

@ -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>

View File

@ -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>