Skip to content

Commit

Permalink
Microsoft.Data.Sqlite: Handle more nulls in ApplicationDataHelper
Browse files Browse the repository at this point in the history
Fixes #26574
  • Loading branch information
bricelam committed Nov 11, 2021
1 parent cb6d523 commit 53b7e58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static string? LocalFolderPath
private static string? GetFolderPath(string propertyName)
{
var appDataType = CurrentApplicationData?.GetType();
var temporaryFolder = appDataType?.GetRuntimeProperty(propertyName)!.GetValue(CurrentApplicationData);
var temporaryFolder = appDataType?.GetRuntimeProperty(propertyName)?.GetValue(CurrentApplicationData);

return temporaryFolder?.GetType().GetRuntimeProperty("Path")!.GetValue(temporaryFolder) as string;
}
Expand Down

0 comments on commit 53b7e58

Please sign in to comment.