Check that UIT_GetWebView() is non-NULL before dereferencing (issue #441).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@401 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-12-01 17:11:45 +00:00
parent 9fd169d16c
commit 47217b00d4
3 changed files with 30 additions and 15 deletions

View File

@@ -534,7 +534,8 @@ void BrowserWebViewDelegate::RevokeDragDrop() {
}
void BrowserWebViewDelegate::EndDragging() {
browser_->UIT_GetWebView()->dragSourceSystemDragEnded();
if (browser_->UIT_GetWebView())
browser_->UIT_GetWebView()->dragSourceSystemDragEnded();
drag_delegate_ = NULL;
}