From 69ee6914978663779a65b43771d3720e5711cf3a Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 20 Mar 2020 17:59:56 +0100 Subject: [PATCH] Fix null pointer. --- app/Http/Controllers/Chart/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Chart/AccountController.php b/app/Http/Controllers/Chart/AccountController.php index 108075bc63..a5f440260e 100644 --- a/app/Http/Controllers/Chart/AccountController.php +++ b/app/Http/Controllers/Chart/AccountController.php @@ -427,7 +427,8 @@ class AccountController extends Controller */ public function period(Account $account, Carbon $start, Carbon $end): JsonResponse { - $cache = new CacheProperties; + $chartData = []; + $cache = new CacheProperties; $cache->addProperty('chart.account.period'); $cache->addProperty($start); $cache->addProperty($end);