Index: src/pathops/SkPathOpsTSect.h |
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h |
index fbfb8c138fcd9e8cf47bac075b5b3a458fc06178..f3402daa671a5c3bd4ea43588c71ca1528bc41c7 100644 |
--- a/src/pathops/SkPathOpsTSect.h |
+++ b/src/pathops/SkPathOpsTSect.h |
@@ -992,6 +992,9 @@ SkTSpan<TCurve, OppCurve>* SkTSect<TCurve, OppCurve>::boundsMax() const { |
template<typename TCurve, typename OppCurve> |
bool SkTSect<TCurve, OppCurve>::coincidentCheck(SkTSect<OppCurve, TCurve>* sect2) { |
SkTSpan<TCurve, OppCurve>* first = fHead; |
+ if (!first) { |
+ return false; |
+ } |
SkTSpan<TCurve, OppCurve>* last, * next; |
do { |
int consecutive = this->countConsecutiveSpans(first, &last); |