Skip to content

Commit 39b88d1

Browse files
authored
not found without Warning (joomla#45132)
1 parent bfad6f1 commit 39b88d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/MVC/View/JsonApiView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function displayItem($item = null)
215215
$item = $this->prepareItem($model->getItem());
216216
}
217217

218-
if ($item->id === null) {
218+
if (!$item || $item->id === null) {
219219
throw new RouteNotFoundException('Item does not exist');
220220
}
221221

0 commit comments

Comments
 (0)