Index: src/effects/SkRectShaderImageFilter.cpp |
diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp |
index ab38fc48792c27e5a2d2b4a5e10bee4b9e10b2dc..5c34547cb3bce57c7e65a3b862cc14599e1f94e8 100644 |
--- a/src/effects/SkRectShaderImageFilter.cpp |
+++ b/src/effects/SkRectShaderImageFilter.cpp |
@@ -62,6 +62,9 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy, |
SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), |
bounds.height())); |
+ if (NULL == device.get()) { |
+ return false; |
+ } |
SkCanvas canvas(device.get()); |
SkPaint paint; |
paint.setShader(fShader); |