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

@@ -296,7 +296,8 @@ void BrowserWebViewDelegate::startDragging(
const WebImage& image,
const WebPoint& image_offset) {
// TODO(port): Support drag and drop.
browser_->UIT_GetWebView()->dragSourceSystemDragEnded();
if (browser_->UIT_GetWebView())
browser_->UIT_GetWebView()->dragSourceSystemDragEnded();
}
void BrowserWebViewDelegate::runModal() {