diff --git a/lib/models/patch.dart b/lib/models/patch.dart index 59c419e7..e9078773 100644 --- a/lib/models/patch.dart +++ b/lib/models/patch.dart @@ -12,7 +12,15 @@ class Patch { required this.options, }); - factory Patch.fromJson(Map json) => _$PatchFromJson(json); + factory Patch.fromJson(Map json) { + // See: https://github.com/ReVanced/revanced-manager/issues/1364#issuecomment-1760414618 + if (json['options'] == null) { + json['options'] = []; + } + + return _$PatchFromJson(json); + } + final String name; final String? description; final bool excluded; diff --git a/pubspec.yaml b/pubspec.yaml index 3db5a236..749d05c4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://github.com/revanced/revanced-manager publish_to: 'none' -version: 1.12.0+101200000 +version: 1.12.1+101200100 environment: sdk: '>=3.0.0 <4.0.0'