[google_maps_flutter] App crashes with a java.lang.NullPointerException while popping a screen with a GoogleMaps widget
Problem
Internal: b/292548402 Steps to Reproduce I have reproduced it on a Pixel 3 in debug mode REAL (Android 12) and emulated (api level 30). 1. Execute `flutter run` on the code sample with `google_maps_flutter: ^2.1.7` dependency 2. Press the "Push map" button 3. Press the top right "x" IconButton or the back arrow to pop the screen 4. repeat from 2 until a crash occurs Expected results: No crash. Actual results: This ๐ https://user-images.githubusercontent.com/13722041/173616129-4cce324d-3481-4ea7-bc16-5c52c0493f10.mp4 <details> <summary>Code sample</summary> [code block] </details> <details> <summary>Logs</summary> [code block] Flutter doctor -v [code block] </details>
Error Output
Exception: Attempt to get length of null array
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [google_maps_flutter] App crashes with a java.lang.NullPointerException while popping a screen with a GoogleMaps widget
Please upvote the top comment, as this increases visibility/priority of the issue afaik
Trust Score
6 verifications
- 1
Please upvote the top comment, as this increases visibility/priority of the issu
Please upvote the top comment, as this increases visibility/priority of the issue afaik
Validation
Resolved in flutter/flutter GitHub issue #105965. Community reactions: 27 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep