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

Null check operator used on a null value #276

Open
maitycyrus opened this issue Mar 7, 2022 · 4 comments
Open

Null check operator used on a null value #276

maitycyrus opened this issue Mar 7, 2022 · 4 comments

Comments

@maitycyrus
Copy link

`======== Exception caught by gesture ===============================================================
The following _CastError was thrown while handling a gesture:
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0 _PersistentTabViewState.popAllScreens (package:persistent_bottom_nav_bar/persistent-tab-view.widget.dart:732:45)
#1 _PersistentTabViewState.navigationBarWidget. (package:persistent_bottom_nav_bar/persistent-tab-view.widget.dart:601:25)
#2 _BottomNavStyle12State.build.. (package:persistent_bottom_nav_bar/nav-bar-styles/style-12-bottom-nav-bar.widget.dart:177:59)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:198:24)
#4 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:608:11)
#5 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
#6 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:267:7)
#7 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
#8 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:443:20)
#9 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:419:22)
#10 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:322:11)
#11 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:374:7)
#12 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
#13 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
#14 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
#18 _invoke1 (dart:ui/hooks.dart:170:10)
#19 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:331:7)
#20 _dispatchPointerDataPacket (dart:ui/hooks.dart:94:31)
(elided 3 frames from dart:async)
Handler: "onTap"
Recognizer: TapGestureRecognizer#a7603
debugOwner: GestureDetector
state: ready
won arena
finalPosition: Offset(184.0, 629.5)
finalLocalPosition: Offset(28.8, 19.1)
button: 1
sent tap down
=======================`

@maitycyrus maitycyrus changed the title Bug Bug Null check operator used on a null value Mar 7, 2022
@maitycyrus maitycyrus changed the title Bug Null check operator used on a null value Null check operator used on a null value Mar 7, 2022
@maitycyrus
Copy link
Author

_contextList is non-nullable

@alexaung
Copy link

How do you solve this issue? I am also facing it

@kubawich
Copy link

@maitycyrus Hey, how did You fix this?

@hortigado
Copy link

I have the same problem

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

No branches or pull requests

4 participants