diff --git a/lib/src/screens/debug/scheme_management/scheme_management_screen.dart b/lib/src/screens/debug/scheme_management/scheme_management_screen.dart index 493ff9d7..cd031f69 100644 --- a/lib/src/screens/debug/scheme_management/scheme_management_screen.dart +++ b/lib/src/screens/debug/scheme_management/scheme_management_screen.dart @@ -50,6 +50,8 @@ class _SchemeManagementScreenState extends State { // ErrorEvents are automatically reported by the IrmaRepository if error reporting is enabled. final errorReported = await IrmaRepositoryProvider.of(context).preferences.getReportErrors().first; + if (!mounted) return; + navigator.push( MaterialPageRoute( builder: (context) => ErrorScreen.fromEvent(