Index: src/pathops/SkOpSpan.cpp |
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp |
index e89ec3e204844642b1381c0c353b5c88c5490731..ae4771cffc01ee15cfe4ce65b5bea8d4cd7fdc29 100755 |
--- a/src/pathops/SkOpSpan.cpp |
+++ b/src/pathops/SkOpSpan.cpp |
@@ -279,7 +279,10 @@ void SkOpSpan::detach(SkOpPtT* kept) { |
prev->setNext(next); |
next->setPrev(prev); |
this->segment()->detach(this); |
- this->globalState()->coincidence()->fixUp(this->ptT(), kept); |
+ SkOpCoincidence* coincidence = this->globalState()->coincidence(); |
+ if (coincidence) { |
+ coincidence->fixUp(this->ptT(), kept); |
+ } |
this->ptT()->setDeleted(); |
} |