-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
fix: prevent null exception when undefined/null Polygon.hitValue
#1828
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry that I haven't seen this in my review.
edit: will do some additional testing, before I approve 😁
When you zoom in far like showcased in the video and then hover over the polygons the app crashes. polygon.app.crashes.mp4Not sure tho if this is related to this bug or another bug. |
Oooh, that's quite nasty, wonder if it's a memory leak or something, or whether the hover outlines are triggering it. |
This is unrelated to tap detection, as it appears to be present prior to the introduction of this. It is present in commit f31829f. |
maybe just setting the |
Ah, the commit I mentioned above isn't necessarily the commit that caused it, just the previous one that I can reproduce the issue on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright since it's not releated to this bug we can merge this pr. We should give the crash a high priority tho, maybe even create a bug report for it.
Report made in #1829. |
This works in the polyline layer, but I missed out a line copy when carrying some changes over.
Thanks to @mohammedX6 for bringing this to my attention. Replaces #1826.