Temporarily workaround TryGetPageDirective returning null instead of empty string.

This commit is contained in:
Pranav K 2017-06-05 17:20:57 -07:00
parent 8e5fe56836
commit b9e397ed3b
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal
if (PageDirectiveFeature.TryGetPageDirective(fileInfo.CreateReadStream, out var template))
{
compilationInfo.RouteTemplate = template;
compilationInfo.RouteTemplate = template ?? string.Empty;
}
results[i] = compilationInfo;