Skip to content

Commit ae6bba8

Browse files
authored
Fix passing null (#1412)
1 parent 5922e16 commit ae6bba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/FailedJobsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function decode($job)
117117

118118
$job->exception = mb_convert_encoding($job->exception, 'UTF-8');
119119

120-
$job->context = json_decode($job->context);
120+
$job->context = json_decode($job->context ?? '');
121121

122122
$job->retried_by = collect(! is_null($job->retried_by) ? json_decode($job->retried_by) : [])
123123
->sortByDesc('retried_at')->values();

0 commit comments

Comments
 (0)