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 #1101
Comments
I couldn't find the problem. Any more details? |
I don't think this is related to this lib. flutter/flutter#81684 |
We may have to check whether this State object is currently in a tree. |
Facing the same issue. Was anyone able to fix this? |
Any reproducible code? |
Unfortunately no. I'm not able to reproduce it locally. Stacktrace from sentry looks similar as the one above:
|
I think you are right. So @HenrikSunvigo can you please add your solution in all of the chart types? |
Yes, @HenrikSunvigo is correct. You need to check if the widget is mounted before calling setState. |
…ds in bar, line and scatter charts, #1101
…ds in bar, line and scatter charts, #1101
We did the |
I can't speak to this exact issue, but I'm having a similar error on version
|
We can add a fallback value of 1.0 for the line that you mentioned.
|
Describe the bug
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown Instance of 'ErrorDescription'.
at State.setState(framework.dart:1129)
at _LineChartState._handleBuiltInTouch(line_chart.dart:108)
at RenderBaseChart._notifyTouchEvent(render_base_chart.dart:140)
at RenderBaseChart.initGestureRecognizers.(render_base_chart.dart:76)
at LongPressGestureRecognizer._checkLongPressMoveUpdate.(long_press.dart:756)
at GestureRecognizer.invokeCallback(recognizer.dart:198)
at LongPressGestureRecognizer._checkLongPressMoveUpdate(long_press.dart:756)
at LongPressGestureRecognizer.handlePrimaryPointer(long_press.dart:652)
at PrimaryPointerGestureRecognizer.handleEvent(recognizer.dart:563)
at PointerRouter._dispatch(pointer_router.dart:94)
at PointerRouter._dispatchEventToRoutes.(pointer_router.dart:139)
at _LinkedHashMapMixin.forEach(_LinkedHashMapMixin.java)
at PointerRouter._dispatchEventToRoutes(pointer_router.dart:137)
at PointerRouter.route(pointer_router.dart:123)
at GestureBinding.handleEvent(binding.dart:445)
at GestureBinding.dispatchEvent(binding.dart:425)
at RendererBinding.dispatchEvent(binding.dart:329)
at GestureBinding._handlePointerEventImmediately(binding.dart:380)
at GestureBinding.handlePointerEvent(binding.dart:344)
at GestureBinding._flushPointerEventQueue(binding.dart:302)
at GestureBinding._handlePointerDataPacket(binding.dart:285)
To Reproduce
I do not know how to reproduce this issue. It happens in the field in production.
Versions
Flutter 3.0.5
fl_chart 0.55.0
The text was updated successfully, but these errors were encountered: