Fix issue with null pointer

This commit is contained in:
James Cole
2020-06-20 22:16:03 +02:00
parent 46796a8c10
commit 0dbee47182

View File

@@ -263,7 +263,7 @@ class ReportController extends Controller
public function index(AccountRepositoryInterface $repository)
{
/** @var Carbon $start */
$start = clone session('first');
$start = clone session('first', new Carbon);
$months = $this->helper->listOfMonths($start);
$customFiscalYear = app('preferences')->get('customFiscalYear', 0)->data;
$accounts = $repository->getAccountsByType(