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;