| Index: src/pathops/SkOpSegment.cpp
|
| diff --git a/src/pathops/SkOpSegment.cpp b/src/pathops/SkOpSegment.cpp
|
| index 3b81cf2eed1384fc64f71190a66d96b04bed8aae..d066794cee2a02c10eec5e9e9de42bd8c351925d 100644
|
| --- a/src/pathops/SkOpSegment.cpp
|
| +++ b/src/pathops/SkOpSegment.cpp
|
| @@ -362,6 +362,9 @@ SkOpPtT* SkOpSegment::addT(double t, AllowAlias allowAlias, SkChunkAlloc* alloca
|
| }
|
| if (t < result->fT) {
|
| SkOpSpan* prev = result->span()->prev();
|
| + if (!prev) {
|
| + return nullptr;
|
| + }
|
| SkOpSpan* span = insert(prev, allocator);
|
| span->init(this, prev, t, pt);
|
| this->debugValidate();
|
|
|