Index: src/pathops/SkPathOpsOp.cpp |
diff --git a/src/pathops/SkPathOpsOp.cpp b/src/pathops/SkPathOpsOp.cpp |
index 25795047c80dbabd1782313988fbe8d20abdb87d..1970eea124396790963d7b560713c07de7daf463 100644 |
--- a/src/pathops/SkPathOpsOp.cpp |
+++ b/src/pathops/SkPathOpsOp.cpp |
@@ -36,6 +36,9 @@ static SkOpSegment* findChaseOp(SkTDArray<SkOpSpanBase*>& chase, SkOpSpanBase** |
int winding; |
bool sortable; |
const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sortable); |
+ if (!angle) { |
+ return nullptr; |
+ } |
if (winding == SK_MinS32) { |
continue; |
} |