Merge pull request #210 from chlupac/master

Missing nullcheck -> crash when 404
This commit is contained in:
Shaun Walker 2020-02-18 08:22:00 -05:00 committed by GitHub
commit 359fe2c42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,8 +190,11 @@
{
page = pages.Where(item => item.Path == path).FirstOrDefault();
reload = Reload.Page;
if (page!=null)
{
editmode = page.EditMode;
}
}
user = null;
if (PageState == null || reload >= Reload.Page)