Skip to content

Commit

Permalink
solve method not exist on null.
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles authored Jun 1, 2021
1 parent dbe7229 commit 337b539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SeoBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __get($name)
$metatags = [];

foreach($this->metatags as $tag => $attribute) {
if ($this->owner->canGetProperty($attribute)) {
if ($this->owner && $this->owner->canGetProperty($attribute)) {
$metatags[$tag] = $this->owner->{$attribute};
}
}
Expand Down

0 comments on commit 337b539

Please sign in to comment.