From 59113645075d5a1c3b17cc06aacb30504ca6467a Mon Sep 17 00:00:00 2001 From: Ruiqi Mao Date: Tue, 17 Jul 2018 18:38:35 -0400 Subject: fixed ASAN dm errors Bug: skia: Change-Id: Iade74ee6a4f063deb5af66d3b06affba28977011 Reviewed-on: https://skia-review.googlesource.com/141966 Reviewed-by: Ruiqi Mao Commit-Queue: Ruiqi Mao --- src/core/SkThreadedBMPDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ++) { -- cgit v1.2.3