From bde09081c382696d8b6ab619e68f0f59055ac3de Mon Sep 17 00:00:00 2001 From: "sehr@google.com" Date: Wed, 3 Mar 2010 21:48:43 +0000 Subject: 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 --- chrome/renderer/webplugin_delegate_pepper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/renderer/webplugin_delegate_pepper.cc') 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); } -- cgit v1.1