From 6af0df0716496edf70a63eb62bfbd9951b22ee1a Mon Sep 17 00:00:00 2001 From: Arran Ubels Date: Wed, 28 Aug 2024 11:35:02 +1000 Subject: [PATCH] This adds some tolerance for commented out distribute_options.yaml sections (#222) --- packages/flutter_distributor/lib/src/release.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_distributor/lib/src/release.dart b/packages/flutter_distributor/lib/src/release.dart index f99b9ce9..dca9dc81 100644 --- a/packages/flutter_distributor/lib/src/release.dart +++ b/packages/flutter_distributor/lib/src/release.dart @@ -12,7 +12,7 @@ class Release { if (json.containsKey('variables') && json['variables'] != null) { variables = Map.from(json['variables']); } - List jobs = (json['jobs'] as List) + List jobs = (json['jobs'] as List? ?? []) .map((item) => ReleaseJob.fromJson(item)) .toList(); return Release(