Action: Do not fail if no url is set

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-07 12:00:35 +02:00
parent 274a0c8a09
commit 7d167d0191
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class Action extends NavigationItem
public function getUrl()
{
$url = parent::getUrl();
if (! $this->resolved) {
if (! $this->resolved && $url !== null) {
$this->setUrl(Macro::resolveMacros($url->getAbsoluteUrl(), $this->getObject()));
$this->resolved = true;
}