summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 21:21:09 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-25 21:21:09 +0000
commit7c1a52e2e82d0af757cdc327fc56d6297b94c1fa (patch)
tree1d4617afdf075dfed75bb90a9594f52e36b883c2 /skia
parentacc1900556d5fec6e1d35dbb5cf80d341d689d90 (diff)
downloadchromium_src-7c1a52e2e82d0af757cdc327fc56d6297b94c1fa.zip
chromium_src-7c1a52e2e82d0af757cdc327fc56d6297b94c1fa.tar.gz
chromium_src-7c1a52e2e82d0af757cdc327fc56d6297b94c1fa.tar.bz2
check for null-device before we try to erase it.
https://code.google.com/p/chromium/issues/detail?id=172052 Review URL: https://codereview.chromium.org/12047126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/bitmap_platform_device_linux.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ext/bitmap_platform_device_linux.cc b/skia/ext/bitmap_platform_device_linux.cc
index 3a049e5..a35ba77 100644
--- a/skia/ext/bitmap_platform_device_linux.cc
+++ b/skia/ext/bitmap_platform_device_linux.cc
@@ -107,7 +107,7 @@ BitmapPlatformDevice* BitmapPlatformDevice::Create(int width, int height,
BitmapPlatformDevice* device = Create(width, height, is_opaque, surface);
#ifndef NDEBUG
- if (is_opaque) // Fill with bright bluish green
+ if (device && is_opaque) // Fill with bright bluish green
device->eraseColor(SkColorSetARGB(255, 0, 255, 128));
#endif