diff --git a/packages/smooth_app/lib/pages/product/product_questions_widget.dart b/packages/smooth_app/lib/pages/product/product_questions_widget.dart index 429c9da01ed..9179081a751 100644 --- a/packages/smooth_app/lib/pages/product/product_questions_widget.dart +++ b/packages/smooth_app/lib/pages/product/product_questions_widget.dart @@ -179,9 +179,13 @@ class _ProductQuestionsWidgetState extends State Future?> _loadProductQuestions() async { final LocalDatabase localDatabase = context.read(); - final List questions = - await ProductQuestionsQuery(widget.product.barcode!) - .getQuestions(localDatabase, 3); + final List questions; + try { + questions = await ProductQuestionsQuery(widget.product.barcode!) + .getQuestions(localDatabase, 3); + } catch (e) { + return null; + } if (!mounted) { return null; }