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
2012-07-03 15:39:56 +02:00
committed by Alexandre Deckner
parent 1137289fbc
commit 1cad765a3b
+2 -1
View File
@@ -1224,7 +1224,8 @@ BrowserWindow::_TabChanged(int32 index)
if (webView == CurrentWebView())
return;
CurrentWebView()->SetUserData(new PageUserData(CurrentFocus()));
if (CurrentWebView() != NULL)
CurrentWebView()->SetUserData(new PageUserData(CurrentFocus()));
SetCurrentWebView(webView);