Index: src/pathops/SkOpCoincidence.cpp |
diff --git a/src/pathops/SkOpCoincidence.cpp b/src/pathops/SkOpCoincidence.cpp |
index 130d1daff777eb392cf6183223b3035eeecc1ea3..42ee5c6091198b4c1eab57c4a2df45d3c419b815 100755 |
--- a/src/pathops/SkOpCoincidence.cpp |
+++ b/src/pathops/SkOpCoincidence.cpp |
@@ -90,6 +90,9 @@ bool SkOpCoincidence::addExpanded(SkChunkAlloc* allocator |
} |
SkOpSpanBase* test = start->upCast()->next(); |
SkOpSpanBase* oTest = coin->fFlipped ? oStart->prev() : oStart->upCast()->next(); |
+ if (!oTest) { |
+ return false; |
+ } |
while (test != end || oTest != oEnd) { |
if (!test->ptT()->contains(oTest->ptT())) { |
// use t ranges to guess which one is missing |