FG
๐Ÿ“ฑ Mobile & Cross-PlatformGoogle

[google_maps_flutter] App crashes with a java.lang.NullPointerException while popping a screen with a GoogleMaps widget

Freshover 2 years ago
Mar 14, 20260 views
Confidence Score78%
78%

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

Canonical Fix
High Confidence Fix
74% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: [google_maps_flutter] App crashes with a java.lang.NullPointerException while popping a screen with a GoogleMaps widget

Low Risk

Please upvote the top comment, as this increases visibility/priority of the issue afaik

74

Trust Score

6 verifications

100% success
  1. 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

Worked: 6
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

flutterdartmobilec:-regressionc:-crashplatform-androidcustomer:-crowd