Skip to content

Commit

Permalink
null pointer exception fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsekaean committed Nov 29, 2018
1 parent 057fe98 commit 7d9f8f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Extensions/ElementDocumentGeneratorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ public function makeSearchDocumentForPage()
/* @var $element BaseElement */
$element = $this->owner;
$page = $element->getPage();
self::make_document_for($page);
if($page) {
self::make_document_for($page);
}
}

}

0 comments on commit 7d9f8f1

Please sign in to comment.