diff --git a/lib/components/search/search_results_body/parts/sense/sense.dart b/lib/components/search/search_results_body/parts/sense/sense.dart index 8d25663..1d91559 100644 --- a/lib/components/search/search_results_body/parts/sense/sense.dart +++ b/lib/components/search/search_results_body/parts/sense/sense.dart @@ -30,14 +30,15 @@ class Sense extends StatelessWidget { return supplementalInfo; } - List get _supplementalWithoutAntonyms => - _removeAntonyms(List.from(meaning?.supplemental ?? [])); + List? get _supplementalWithoutAntonyms => + (meaning == null) ? null : + _removeAntonyms(List.from(meaning!.supplemental)); bool get hasSupplementalInfo => sense.info.isNotEmpty || sense.source.isNotEmpty || sense.tags.isNotEmpty || - _supplementalWithoutAntonyms.isNotEmpty; + (_supplementalWithoutAntonyms?.isNotEmpty ?? false); @override Widget build(BuildContext context) => BlocBuilder(