This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] +Fix. Path.Data crashing when geometry has a PolyLineSegment with 0 point #13159
Labels
a/shapes
e/2 🕑
2
in-progress
This issue has an associated pull request that may resolve it!
p/iOS 🍎
t/bug 🐛
Description
When Path.Data is set to a geometry containing a PolyLineSegment with 0 point, it crashes
Looking into source line 93 of GeometryExtensions.cs:
https://github.com/xamarin/Xamarin.Forms/blob/5.0.0/Xamarin.Forms.Platform.iOS/Extensions/GeometryExtensions.cs
If polylineSegment.Points.Count is 0, then the last line crashes (
points[points.Count - 1];
)Basic Information
The text was updated successfully, but these errors were encountered: