Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix null pointer exception. #846
James Cole6fd040d42066
diff --git a/app/Http/Controllers/CategoryController.php b/app/Http/Controllers/CategoryController.phpindex 3ad10f995a..5e3184f7a9 100644--- a/app/Http/Controllers/CategoryController.php+++ b/app/Http/Controllers/CategoryController.php@@ -232,12 +232,14 @@ class CategoryController extends Controller$start = null;$end = null;$periods = new Collection;+ echo '12';// prep for "all" view.if ($moment === 'all') {$subTitle = trans('firefly.all_journals_for_category', ['name' => $category->name]);- $start = $repository->firstUseDate($category);+ $first = $repository->firstUseDate($category);+ $start = is_null($first) ? new Carbon : $first;$end = new Carbon;}