Maybe CurrentWebView() is NULL too...

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@400 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
stippi 2010-04-07 13:00:55 +00:00 committed by Alexandre Deckner
parent 1137289fbc
commit 1cad765a3b

View File

@ -1224,7 +1224,8 @@ BrowserWindow::_TabChanged(int32 index)
if (webView == CurrentWebView()) if (webView == CurrentWebView())
return; return;
CurrentWebView()->SetUserData(new PageUserData(CurrentFocus())); if (CurrentWebView() != NULL)
CurrentWebView()->SetUserData(new PageUserData(CurrentFocus()));
SetCurrentWebView(webView); SetCurrentWebView(webView);