Fix %APPDATA% detection logic.

This commit is contained in:
Levi B 2014-10-27 12:55:59 -07:00
parent bd529b3b5b
commit 6797dfea48
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ namespace Microsoft.AspNet.Security.DataProtection
#if !ASPNETCORE50 #if !ASPNETCORE50
// Environment.GetFolderPath returns null if the user profile isn't loaded. // Environment.GetFolderPath returns null if the user profile isn't loaded.
string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
if (folderPath != null) if (!String.IsNullOrEmpty(folderPath))
{ {
// TODO: Remove BETA moniker from below. // TODO: Remove BETA moniker from below.
return new DirectoryInfo(Path.Combine(folderPath, "ASP.NET", "keys-BETA")); return new DirectoryInfo(Path.Combine(folderPath, "ASP.NET", "keys-BETA"));