bug 44774, 44775
author=ashuk r=ovk@sparc.spb.su Minor fix for failed QA Test. Patch supplied by Oleg. _Ashu git-svn-id: svn://10.0.0.236/trunk@75403 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -71,7 +71,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_CurrentPageImp
|
||||
nsIContentViewer* contentViewer ;
|
||||
nsresult rv = nsnull;
|
||||
rv = initContext->docShell->GetContentViewer(&contentViewer);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (NS_FAILED(rv) || contentViewer==nsnull ) {
|
||||
initContext->initFailCode = kGetContentViewerError;
|
||||
::util_ThrowExceptionToJava(env, "Exception: cant get ContentViewer from DocShell");
|
||||
return;
|
||||
@@ -336,7 +336,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_CurrentPageImp
|
||||
nsIContentViewer* contentViewer ;
|
||||
nsresult rv = nsnull;
|
||||
rv = initContext->docShell->GetContentViewer(&contentViewer);
|
||||
if (NS_FAILED(rv)) {
|
||||
if (NS_FAILED(rv) || contentViewer==nsnull) {
|
||||
initContext->initFailCode = kGetContentViewerError;
|
||||
::util_ThrowExceptionToJava(env, "Exception: cant get ContentViewer from DocShell");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user