We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfad6f1 commit 39b88d1Copy full SHA for 39b88d1
libraries/src/MVC/View/JsonApiView.php
@@ -215,7 +215,7 @@ public function displayItem($item = null)
215
$item = $this->prepareItem($model->getItem());
216
}
217
218
- if ($item->id === null) {
+ if (!$item || $item->id === null) {
219
throw new RouteNotFoundException('Item does not exist');
220
221
0 commit comments