aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/core/SkThreadedBMPDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkThreadedBMPDevice.cpp b/src/core/SkThreadedBMPDevice.cpp
index 0fed293239..1dea5e6d2d 100644
--- a/src/core/SkThreadedBMPDevice.cpp
+++ b/src/core/SkThreadedBMPDevice.cpp
@@ -228,7 +228,7 @@ void SkThreadedBMPDevice::drawVertices(const SkVertices* vertices, const SkMatri
SkRect drawBounds = SkRectPriv::MakeLargest(); // TODO tighter drawBounds
// Make a copy of the bone matrices.
- SkMatrix* clonedBones = this->cloneArray(bones, boneCount);
+ SkMatrix* clonedBones = bones ? this->cloneArray(bones, boneCount) : nullptr;
// Make the bone matrices thread-safe.
for (int i = 0; i < boneCount; i ++) {