Index: src/core/SkStream.cpp |
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp |
index 5a66399f5e38a1e1d73b731f7ef1da3747314364..b834513b4f638477c803d5083e1ac4d441f6f9c7 100644 |
--- a/src/core/SkStream.cpp |
+++ b/src/core/SkStream.cpp |
@@ -795,7 +795,8 @@ public: |
} |
const void* getMemoryBase() override { |
- if (nullptr == fBlockMemory->fHead->fNext) { |
+ if (nullptr != fBlockMemory->fHead && |
+ nullptr == fBlockMemory->fHead->fNext) { |
return fBlockMemory->fHead->start(); |
} |
return nullptr; |