mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix null pointer exception. #846
This commit is contained in:
parent
c8cec91a93
commit
6fd040d420
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user