Index: src/core/SkRWBuffer.cpp |
diff --git a/src/core/SkRWBuffer.cpp b/src/core/SkRWBuffer.cpp |
index f0b565edf3f685360844dace2af2997de810b5ed..55c411bd775397b26b8d2c96aaf3a82110b65aee 100644 |
--- a/src/core/SkRWBuffer.cpp |
+++ b/src/core/SkRWBuffer.cpp |
@@ -142,7 +142,7 @@ SkROBuffer::Iter::Iter(const SkROBuffer* buffer) { |
} |
void SkROBuffer::Iter::reset(const SkROBuffer* buffer) { |
- if (buffer) { |
+ if (buffer && buffer->fHead) { |
fBlock = &buffer->fHead->fBlock; |
fRemaining = buffer->fAvailable; |
} else { |