Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: chrome/renderer/webview_color_overlay.cc

Issue 8771055: Fix null pointer exception in WebViewColorOverlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webview_color_overlay.cc
diff --git a/chrome/renderer/webview_color_overlay.cc b/chrome/renderer/webview_color_overlay.cc
index c300dfd59e0feb1d99fd308322c7b6f329b03bc6..d7ae529dcba809beaf181bfe80272119727d786f 100644
--- a/chrome/renderer/webview_color_overlay.cc
+++ b/chrome/renderer/webview_color_overlay.cc
@@ -25,7 +25,8 @@ WebViewColorOverlay::WebViewColorOverlay(content::RenderView* render_view,
}
WebViewColorOverlay::~WebViewColorOverlay() {
- render_view_->GetWebView()->removePageOverlay(this);
+ if (render_view_->GetWebView())
+ render_view_->GetWebView()->removePageOverlay(this);
}
void WebViewColorOverlay::paintPageOverlay(WebKit::WebCanvas* canvas) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698