Skip to content

Error: Unexpected null value and invoke debug when clicking left side of AppBar on Flutter Web #105458

@billyinferno

Description

@billyinferno

Steps to Reproduce

  1. Create new flutter project
  2. Run it on Chrome, open Dev Tools and view it as mobile (eg. Iphone 12 Pro)
  3. Click repeatedly on the left side (beside the title) of AppBar and it will causing debug

Expected results:

Debug shouldn't be invoked when pressing the AppBar

Actual results:

Debug is invoked with error below showed on the Debug Console:

Error: Unexpected null value.
    at Object.throw_ [as throw] (http://localhost:58870/dart_sdk.js:5148:11)
    at Object.nullCheck (http://localhost:58870/dart_sdk.js:5467:30)
    at [_getSanitizer] (http://localhost:58870/dart_sdk.js:173406:28)
    at http://localhost:58870/dart_sdk.js:173458:42
    at http://localhost:58870/dart_sdk.js:173419:16
    at loggedHandler (http://localhost:58870/dart_sdk.js:173124:11)

Screenshot for the error showed below:
Screenshot 2022-06-07 021408

flutter doctor -v
[✓] Flutter (Channel beta, 3.1.0, on Microsoft Windows [Version 10.0.22000.675], locale en-SG)
    • Flutter version 3.1.0 at D:\Project\Flutter\sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision bcea432bce (11 days ago), 2022-05-26 09:05:34 -0700
    • Engine revision 44e5b38ee8
    • Dart version 2.18.0 (build 2.18.0-44.1.beta)
    • DevTools version 2.12.2

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\billy\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
    • Visual Studio at D:\Apps\VC2022
    • Visual Studio Community 2022 version 17.0.32112.339
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] VS Code (version 1.67.2)
    • VS Code at C:\Users\billy\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.40.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.675]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 102.0.5005.63
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 102.0.1245.33

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: crashStack traces logged to the consoleengineflutter/engine related. See also e: labels.found in release: 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions