mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-29 08:13:05 +00:00
Missing nullcheck -> crash when 404
This commit is contained in:
parent
ff6f67aba0
commit
12a48bb67c
@ -196,7 +196,10 @@
|
||||
{
|
||||
page = pages.Where(item => item.Path == path).FirstOrDefault();
|
||||
reload = Reload.Page;
|
||||
editmode = page.EditMode;
|
||||
if (page!=null)
|
||||
{
|
||||
editmode = page.EditMode;
|
||||
}
|
||||
}
|
||||
|
||||
user = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user