Potential Null pointer exception in Space URL

This commit is contained in:
Lucas Bartholemy 2019-03-22 12:01:08 +01:00
parent 8f8a1b4cfe
commit 65c1eca808

View File

@ -95,7 +95,7 @@ class UrlRule extends BaseObject implements UrlRuleInterface
if ($space !== null) {
static::$spaceUrlMap[$space->guid] = ($space->url != '') ? $space->url : $space->guid;
} else {
static::$spaceUrlMap[$space->guid] = null;
static::$spaceUrlMap[$guid] = null;
}
return static::$spaceUrlMap[$guid];