Index: src/pathops/SkPathOpsCommon.cpp |
diff --git a/src/pathops/SkPathOpsCommon.cpp b/src/pathops/SkPathOpsCommon.cpp |
index ec8e78d0cb9acf3208a7ab0e7ccad8a29bcbf6ad..24ef6f11291e4bb02a08aa1266c3f6f0c62d342e 100644 |
--- a/src/pathops/SkPathOpsCommon.cpp |
+++ b/src/pathops/SkPathOpsCommon.cpp |
@@ -27,6 +27,9 @@ const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windi |
int winding = SK_MinS32; |
do { |
angle = angle->next(); |
+ if (!angle) { |
+ return nullptr; |
+ } |
unorderable |= angle->unorderable(); |
if ((computeWinding = unorderable || (angle == firstAngle && loop))) { |
break; // if we get here, there's no winding, loop is unorderable |