diff --git a/lib/ui/screens/conversation_screen.dart b/lib/ui/screens/conversation_screen.dart index 069a6a6..7843eae 100644 --- a/lib/ui/screens/conversation_screen.dart +++ b/lib/ui/screens/conversation_screen.dart @@ -63,7 +63,9 @@ class _ConversationScreenState extends State { @override void deactivate() { super.deactivate(); - _refreshTime.cancel(); + + if(_refreshTime != null) + _refreshTime.cancel(); } void _setError(ErrorLevel err) => setState(() => _error = err);