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

_CastError: Null check operator used on a null value #1754

Closed
sentry-io bot opened this issue May 5, 2022 · 6 comments
Closed

_CastError: Null check operator used on a null value #1754

sentry-io bot opened this issue May 5, 2022 · 6 comments
Labels
🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…

Comments

@sentry-io
Copy link

sentry-io bot commented May 5, 2022

Sentry Issue: SMOOTHIE-T2

_CastError: Null check operator used on a null value
  File "ml_kit_scan_page.dart", line 143, in MLKitScannerPageState._startLiveFeed.<fn>
  File "camera_controller.dart", line 315, in CameraController.initialize
  File "ml_kit_scan_page.dart", line 150, in MLKitScannerPageState._startLiveFeed
...
(1 additional frame(s) were not displayed)

Part of

@teolemon teolemon added the 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… label May 6, 2022
@ShimronAlakkal
Copy link
Contributor

Could you provide more details about the section where this happened.

This usually happens when there is some nullable variable that has been used in another part of the codebase while it was still null. Or this could also happen as a result of an unknown bug in any flutter channels that is not stable.

Case 1: example

String? foo; // Nullable String

void main() {
  var len = foo!.length; // Runtime error: Null check operator used on a null value
}

If you think it is the other case, then try the following commands.

flutter channel stable
flutter upgrade
flutter clean
flutter pub cache repair
flutter clean
flutter pub get
flutter run

@M123-dev
Copy link
Member

M123-dev commented May 6, 2022

Hello @ShimronAlakkal this is a automatic error logging system, as it isn't directly produced by a dev there aren't any more infos then that it seems to be in ml_kit_scan_page.dart somewhere in line 150 or 143

@ShimronAlakkal
Copy link
Contributor

could we close this issue then?

@M123-dev
Copy link
Member

M123-dev commented May 8, 2022

I mean it's a issue in our code. Something what we don't want is happening so I'd keep it open

@ShimronAlakkal
Copy link
Contributor

My bad. I thought ml_kit_scan_page.dart was a page from a package in pub.dev and not from the smooth_app code. So you know.

@M123-dev
Copy link
Member

It's gone from sentry 😄
The issue you were looking for was not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…
Development

No branches or pull requests

3 participants