From 699fa60999555a8aaa5367930495cceeb1f80c28 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sat, 11 Apr 2026 08:08:24 +0800 Subject: [PATCH] fix(ci): guard mobile shell context after async auth check --- lib/features/mobile/mobile_shell_core.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/features/mobile/mobile_shell_core.dart b/lib/features/mobile/mobile_shell_core.dart index b0af4fee..89274c1e 100644 --- a/lib/features/mobile/mobile_shell_core.dart +++ b/lib/features/mobile/mobile_shell_core.dart @@ -256,6 +256,9 @@ class MobileShellStateInternal extends State { ?.trim() .isNotEmpty ?? false; + if (!mounted) { + return; + } if (!accountSignedIn) { await openGatewaySetupCodeEntryInternal(); messenger?.showSnackBar(