mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix null pointer exception. #846
This commit is contained in:
		| @@ -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; | ||||
|         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user