Skip to content

Firefly III: a personal finances manager

Try to fix null pointer

Sander Dorigo610e3f3ae59b
diff --git a/app/Api/V1/Controllers/System/BatchController.php b/app/Api/V1/Controllers/System/BatchController.php
index a28d2b8c16..7e856adc7f 100644
--- a/app/Api/V1/Controllers/System/BatchController.php
+++ b/app/Api/V1/Controllers/System/BatchController.php
@@ -45,7 +45,7 @@ class BatchController extends Controller
parent::__construct();
$this->middleware(function ($request, $next) {
$this->repository = app(JournalRepositoryInterface::class);
-
+ $this->repository->setUser(auth()->user()); // should not have to do this.
return $next($request);
});
}