From 42e1f0f573eb48fd1ac2a065f2fa764e9d31e0b8 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Thu, 23 Aug 2012 18:58:24 +0000 Subject: Workaround for Android crash (unreviewed). git-svn-id: http://skia.googlecode.com/svn/trunk@5267 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/effects/SkBlendImageFilter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/effects/SkBlendImageFilter.cpp b/src/effects/SkBlendImageFilter.cpp index f4ef9def7f..f637013452 100644 --- a/src/effects/SkBlendImageFilter.cpp +++ b/src/effects/SkBlendImageFilter.cpp @@ -92,6 +92,10 @@ bool SkBlendImageFilter::onFilterImage(Proxy* proxy, SkBitmap* dst, SkIPoint* offset) { SkBitmap background, foreground = src; + // FIXME: This shouldn't happen, but some reason it does on Android. + // (bad serialization?) + if (NULL == fBackground) + return false; SkASSERT(NULL != fBackground); if (!fBackground->filterImage(proxy, src, ctm, &background, offset)) { return false; -- cgit v1.2.3