Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Operand of null-aware operation '!' has type 'String' which excludes null. #37

Open
likerberi opened this issue Mar 22, 2021 · 7 comments · May be fixed by #38
Open

Warning: Operand of null-aware operation '!' has type 'String' which excludes null. #37

likerberi opened this issue Mar 22, 2021 · 7 comments · May be fixed by #38

Comments

@likerberi
Copy link

Expected Behaviour

(e.g. Image cached locally)
no warning when I run my own app.

Actual Behaviour

(e.g. App crashed with stack trace provided)
just warning,, one time or twice in the console.

Steps to Reproduce the Problem

When I just start an app,,, with real device(android tablet)

Specifications

  • Version: (e.g. 0.1.4) = ^1.0.1
  • Device: (e.g. iPhone 6) = p10 HD
  • Platform: (e.g. Hummingbird) = Android 9
  • Flutter Version: (please enter the output of flutter --version) 2.0.2

Screenshots

210322

If applicable, please add screenshots to help explain your problem.

Additional Context

(optional) Add any other context about the problem here.
It just only warning,,, but I cannot confirm a situation when I face a certain problem..
So please check this problem. Thank you.

@joedonchev
Copy link

Exactly same here:
firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.

@stargazing-dino stargazing-dino linked a pull request Mar 25, 2021 that will close this issue
@ycv005
Copy link

ycv005 commented Mar 26, 2021

I am facing same error @mattreid1

../../../snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.
      join((await getDatabasesPath())!, dbName),
            ^

@xbtasvs
Copy link

xbtasvs commented Aug 4, 2021

I have get this error!

/C:/Users/kuk/Documents/sdk/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_image-1.0.1/lib/src/cache_manager.dart:29:13: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.
join((await getDatabasesPath())!, dbName),
^

@Patrick386
Copy link

I get the same error.

스크린샷 2021-10-02 오후 12 57 22

patrick386@iMac flutter_ui % flutter doctor -v
[✓] Flutter (Channel master, 2.6.0-12.0.pre.171, on Mac OS X 10.15.7 19H1323 darwin-x64, locale ko-KR)
• Flutter version 2.6.0-12.0.pre.171 at /Users/patrick386/Developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 18ed542e91 (18 hours ago), 2021-10-01 05:43:04 -0400
• Engine revision 2db4319447
• Dart version 2.15.0 (build 2.15.0-168.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/patrick386/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
! Flutter recommends a minimum Xcode version of 13.0.0.
Download the latest version or update via the Mac App Store.
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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-7281165)

[✓] VS Code (version 1.57.1)
• VS Code at /Users/patrick386/Downloads/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • Mac OS X 10.15.7 19H1323 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.71

! Doctor found issues in 1 category.

@lyf571321556
Copy link

same error

@developer-harry
Copy link

same here :) anyone have solved this warning!

@wenfann
Copy link

wenfann commented Jul 2, 2022

may con cho ngu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants