Skip to content

Commit 1e7c51f

Browse files
authored
Fix "Null check operator used on a null value" error (#4914)
Initiate `remainingBuilds` with number of builds and `failedBuilds` with `0` Fixes: flutter/flutter#176982
1 parent 044739f commit 1e7c51f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app_dart/lib/src/service/firestore/unified_check_run.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ final class UnifiedCheckRun {
4848
stage: stage,
4949
creationTime: pullRequest.createdAt!.microsecondsSinceEpoch,
5050
author: pullRequest.user!.login!,
51-
remainingBuilds: null,
52-
failedBuilds: null,
51+
remainingBuilds: tasks.length,
52+
failedBuilds: 0,
5353
builds: {for (final task in tasks) task: TaskStatus.waitingForBackfill},
5454
);
5555
final checks = [

0 commit comments

Comments
 (0)