summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/webplugin_delegate_pepper.cc
diff options
context:
space:
mode:
authorsehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 21:48:43 +0000
committersehr@google.com <sehr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 21:48:43 +0000
commitbde09081c382696d8b6ab619e68f0f59055ac3de (patch)
tree6702a80c1581b8193f9db6a67e804624578b2239 /chrome/renderer/webplugin_delegate_pepper.cc
parentaea6844af3d0a4e8da37e7cb3103f548ec65d5d1 (diff)
downloadchromium_src-bde09081c382696d8b6ab619e68f0f59055ac3de.zip
chromium_src-bde09081c382696d8b6ab619e68f0f59055ac3de.tar.gz
chromium_src-bde09081c382696d8b6ab619e68f0f59055ac3de.tar.bz2
Added a null pointer check for the repaintCallback of the 3D API.
Review URL: http://codereview.chromium.org/665003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/webplugin_delegate_pepper.cc')
-rw-r--r--chrome/renderer/webplugin_delegate_pepper.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc
index 10c66cd..889d57b 100644
--- a/chrome/renderer/webplugin_delegate_pepper.cc
+++ b/chrome/renderer/webplugin_delegate_pepper.cc
@@ -816,7 +816,8 @@ void WebPluginDelegatePepper::ScheduleHandleRepaint(
void WebPluginDelegatePepper::ForwardHandleRepaint(
NPP npp, NPDeviceContext3D* context) {
- context->repaintCallback(npp, context);
+ if (context->repaintCallback)
+ context->repaintCallback(npp, context);
ScheduleHandleRepaint(npp, context);
}