Index: src/pathops/SkOpSpan.cpp |
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp |
index 2abc44e248493194cfae708e10ed0248d770bfec..40d6383c74821f2b9435dd5d0916abd6f614f1b1 100755 |
--- a/src/pathops/SkOpSpan.cpp |
+++ b/src/pathops/SkOpSpan.cpp |
@@ -407,7 +407,9 @@ bool SkOpSpan::insertCoincidence(const SkOpSegment* segment, bool flipped, bool |
SkOpSpan* span; |
SkOpSpanBase* base = next->span(); |
if (!ordered) { |
- const SkOpSpanBase* spanEnd = fNext->contains(segment)->span(); |
+ const SkOpPtT* spanEndPtT = fNext->contains(segment); |
+ FAIL_IF(!spanEndPtT); |
+ const SkOpSpanBase* spanEnd = spanEndPtT->span(); |
const SkOpPtT* start = base->ptT()->starter(spanEnd->ptT()); |
FAIL_IF(!start->span()->upCastable()); |
span = const_cast<SkOpSpan*>(start->span()->upCast()); |