Index: src/pathops/SkPathOpsCommon.cpp |
diff --git a/src/pathops/SkPathOpsCommon.cpp b/src/pathops/SkPathOpsCommon.cpp |
index 52de8c1e07850678c14e9293556c622fb3889326..82b93f40727042e912b4e7f0c1ccfcfc4a201927 100644 |
--- a/src/pathops/SkPathOpsCommon.cpp |
+++ b/src/pathops/SkPathOpsCommon.cpp |
@@ -124,6 +124,9 @@ SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, |
int winding; |
bool sortable; |
const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sortable); |
+ if (!angle) { |
+ return nullptr; |
+ } |
if (winding == SK_MinS32) { |
continue; |
} |