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 for carousel controller [dev] #1836

Open
f1sh1918 opened this issue Dec 10, 2024 · 0 comments · May be fixed by #1837
Open

Null check operator used on a null value for carousel controller [dev] #1836

f1sh1918 opened this issue Dec 10, 2024 · 0 comments · May be fixed by #1837
Assignees
Labels
Bug Something isn't working

Comments

@f1sh1918
Copy link
Contributor

Describe the bug
There is an scheduler library expression in the console if the app was startet and the carousel controller was not ready

To Reproduce
Steps to reproduce the behavior:

  1. Start the app.
  2. Check the run task of your simulator/emulator
======== Exception caught by scheduler library =====================================================
The following _TypeError was thrown during a scheduler callback:
Null check operator used on a null value

When the exception was thrown, this was the stack: 
#0      CarouselControllerImpl.jumpToPage (package:carousel_slider/carousel_controller.dart:92:38)
#1      IdentificationPageState.initState.<anonymous closure> (package:ehrenamtskarte/identification/identification_page.dart:40:26)
#2      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1386:15)
#3      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1322:11)
#4      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1169:5)
#5      _invoke (dart:ui/hooks.dart:312:13)
#6      PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:399:5)
#7      _drawFrame (dart:ui/hooks.dart:283:31)
====================================================================================================

Expected behavior
It will be waited until the controller is ready, before trying to jump to a particular card index

@f1sh1918 f1sh1918 added the Bug Something isn't working label Dec 10, 2024
@f1sh1918 f1sh1918 self-assigned this Dec 10, 2024
@f1sh1918 f1sh1918 moved this to In Review in team-app Dec 10, 2024
@f1sh1918 f1sh1918 linked a pull request Dec 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

1 participant