Index: src/pathops/SkOpCoincidence.cpp |
diff --git a/src/pathops/SkOpCoincidence.cpp b/src/pathops/SkOpCoincidence.cpp |
index addd2f97eb28d9bdb13fc8928c06443219d0c27f..5bae6f56b832a51d0a54f0385630b66399eed6b5 100755 |
--- a/src/pathops/SkOpCoincidence.cpp |
+++ b/src/pathops/SkOpCoincidence.cpp |
@@ -694,7 +694,7 @@ bool SkOpCoincidence::addOrOverlap(SkOpSegment* coinSeg, SkOpSegment* oppSeg, |
: coinSeg->addT(coinTs, SkOpSegment::kNoAliasMatch, nullptr); |
SkOpPtT* osWritable = os ? const_cast<SkOpPtT*>(os) |
: oppSeg->addT(oppTs, SkOpSegment::kNoAliasMatch, nullptr); |
- if (!osWritable) { |
+ if (!csWritable || !osWritable) { |
return false; |
} |
csWritable->span()->addOppAndMerge(osWritable->span()); |