Skip to content

Commit

Permalink
Add null check when bumping github version (flutter#3404)
Browse files Browse the repository at this point in the history
Same as flutter#3386 with a fix.
  • Loading branch information
keyonghan authored Jan 11, 2024
1 parent fcf4cf7 commit 919cc8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auto_submit/lib/service/approver_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ApproverService {
// TODO(ricardoamador) this will need to be refactored to make this code more general and
// not applicable to only flutter.
await for (github.PullRequestReview review in reviews) {
if (review.user.login == 'fluttergithubbot' && review.state == 'APPROVED') {
if (review.user?.login == 'fluttergithubbot' && review.state == 'APPROVED') {
// Already approved.
return;
}
Expand Down
2 changes: 1 addition & 1 deletion auto_submit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ environment:
dependencies:
appengine: 0.13.7
corsac_jwt: 1.0.0-nullsafety.1
github: 9.20.0
github: 9.22.0
googleapis: 11.4.0
googleapis_auth: 1.4.1
graphql: 5.2.0-beta.7
Expand Down

0 comments on commit 919cc8a

Please sign in to comment.