Call to a member function getProducts() on null

(1/1) Error

Call to a member function getProducts() on null

in ProductCategoryController.php line 66
at ProductCategoryController->show(object(Request))in HttpKernel.php line 146
at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68
at HttpKernel->handle(object(Request), 1, true)in Kernel.php line 201
at Kernel->handle(object(Request))in index.php line 24