Index: src/core/SkPictureData.cpp |
diff --git a/src/core/SkPictureData.cpp b/src/core/SkPictureData.cpp |
index 4391be4acf5d59d6ec06cf79d5e157ea5a13909e..fcc9706565622b5b1926b16748c1d4dc3c112647 100644 |
--- a/src/core/SkPictureData.cpp |
+++ b/src/core/SkPictureData.cpp |
@@ -413,6 +413,9 @@ bool SkPictureData::parseStreamTag(SkStream* stream, |
buffer.setFlags(pictInfoFlagsToReadBufferFlags(fInfo.fFlags)); |
buffer.setVersion(fInfo.fVersion); |
+ if (!fFactoryPlayback) { |
+ return false; |
+ } |
fFactoryPlayback->setupBuffer(buffer); |
buffer.setBitmapDecoder(proc); |