What changed, and why it matters
This is a tiny two-part patch. One change fixes a Flutter widget lifecycle check so a modal bottom sheet is shown only when the widget is still mounted. The other adds a harmless GPU-related error message to a list of exceptions that are ignored for crash-reporting purposes. There is no obvious security issue here.
No security action required. Treat as a normal quality/maintenance patch. If reviewing for release, verify the `mounted` change behaves correctly on the supported Flutter version and that the new exception filter does not hide actionable crashes.
Security signals we found
No security-relevant signals detected in the diff.
The `mounted` change is a routine UI lifecycle fix, not a security boundary.
The exception-handler addition is a log/reporting suppression entry, not a vulnerability fix.
Evidence from the diff
In send_card.dart, the code changes context.mounted to mounted. In Flutter, mounted is a property of the State object and is the idiomatic way to verify a widget is still in the tree before scheduling UI work after an async gap. context.mounted is available on BuildContext in newer Flutter versions, but using mounted on the State is more conventional and avoids potential misuse. In exception_handler.dart, the string “Image upload failed due to loss of GPU access” is appended to a static list of exception signatures that the app suppresses from its own error reporting. This is purely a telemetry/noise-reduction change.
Changed components
lib/src/screens/send/widgets/send_card.dartlib/utils/exception_handler.dartInspect captured patch +2 / −1
diff --git a/lib/src/screens/send/widgets/send_card.dart b/lib/src/screens/send/widgets/send_card.dart
index 007b9005..1c97dbda 100644
--- a/lib/src/screens/send/widgets/send_card.dart
+++ b/lib/src/screens/send/widgets/send_card.dart
@@ -308,7 +308,7 @@ class SendCardState extends State<SendCard> with AutomaticKeepAliveClientMixin<S
final success = await walletSwitcherViewModel.switchToSelectedWallet();
if (success) {
WidgetsBinding.instance.addPostFrameCallback((_) {
- if (context.mounted) {
+ if (mounted) {
showModalBottomSheet<void>(
context: context,
isDismissible: false,
diff --git a/lib/utils/exception_handler.dart b/lib/utils/exception_handler.dart
index 0ddbc0b4..67ead274 100644
--- a/lib/utils/exception_handler.dart
+++ b/lib/utils/exception_handler.dart
@@ -295,6 +295,7 @@ class ExceptionHandler {
"_getDismissibleFlushbar",
"_QueuedFuture.execute (package:universal_ble/src/queue.dart:65)",
"reown_core/relay_client/websocket/websocket_handler.dart",
+ "Image upload failed due to loss of GPU access",
];
static Future<void> _addDeviceInfo(File file) async {
Why this scored 17/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.