File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 6.0.5
2
+ - Fix null errors issue https://github.com/SpinlockLabs/github.dart/issues/199
3
+
1
4
## 6.0.4
2
5
- This fixes #196 (https://github.com/SpinlockLabs/github.dart/issues/196 )
3
6
Original file line number Diff line number Diff line change @@ -387,7 +387,9 @@ class GitHub {
387
387
if (response.headers['content-type' ].contains ('application/json' )) {
388
388
final json = jsonDecode (response.body);
389
389
message = json['message' ];
390
- errors = List <Map <String , String >>.from (json['errors' ]);
390
+ if (json['errors' ] != null ) {
391
+ errors = List <Map <String , String >>.from (json['errors' ]);
392
+ }
391
393
}
392
394
switch (response.statusCode) {
393
395
case 404 :
Original file line number Diff line number Diff line change 1
1
name : github
2
- version : 6.0.4
2
+ version : 6.0.5
3
3
description : A high-level GitHub API Client Library that uses Github's v3 API
4
4
homepage : https://github.com/SpinlockLabs/github.dart
5
5
You can’t perform that action at this time.
0 commit comments