Fix null pointer.

This commit is contained in:
James Cole 2020-03-20 17:59:56 +01:00
parent 5a7152ceec
commit 69ee691497
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -427,7 +427,8 @@ class AccountController extends Controller
*/ */
public function period(Account $account, Carbon $start, Carbon $end): JsonResponse public function period(Account $account, Carbon $start, Carbon $end): JsonResponse
{ {
$cache = new CacheProperties; $chartData = [];
$cache = new CacheProperties;
$cache->addProperty('chart.account.period'); $cache->addProperty('chart.account.period');
$cache->addProperty($start); $cache->addProperty($start);
$cache->addProperty($end); $cache->addProperty($end);