-
Notifications
You must be signed in to change notification settings - Fork 233
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 #124
Comments
Also having this issue |
don't think it is related. |
Also having this issue |
Same problem.. Please fix.... |
Temporarily, you can use my Fork. I made several bug fixes in the Branch and made it so that you can use flutter_map 2.0.0
|
Hi @aytunch, do you perhaps have a branch with all the fixes? I do not think the maintainer of the project have much time for this anymore. |
@TitanKing I shared my fork above: https://github.com/aytunch/flutter_map_marker_cluster |
This happens sometimes and especially when I try to pinch&zoom. And the error goes away once we pan the map.
Also when the user presses on the permission button and the OS presents the location permission dialog, this error gets triggered more often.
The video is from a release build. In the debug build, we get the red error screen all over the map. And after a hot restart, the error goes away (cmd+s)
Notes: the cat marker is not part of a cluster marker. It lives at the last layer, above the cluster marker layers. And as you can see, it renders correctly
The moment I remove
MarkerClusterLayerOptions
from the code, error does not happen.Has anyone came across with this problem before?
@lpongetti if you have some time and have any leads, I would be glad to help solve this issue along with you. Thanks for this awesome plugin.
EDIT:
Line 200 is the problematic line as the debugger shows.
Seems like we use the
_clusterManager.spiderfyCluster!.markers
whilespiderfyCluster
is null. Would a simplespiderfyCluster != null
check fix this?cluster_flicker.mov
The text was updated successfully, but these errors were encountered: