diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 834aa91db7..c8ce28f0c8 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -624,7 +624,7 @@ class ReportsController extends Controller } if ($request->has('category')) { - $row[] = ($asset->model->category) ? $asset->model->category->name : ''; + $row[] = (($asset->model) && ($asset->model->category)) ? $asset->model->category->name : ''; } if ($request->has('manufacturer')) {