bug=31123
a=edburns r=bruce Folks, don't EVER use NULL in your c++ code. Use nsnull instead. git-svn-id: svn://10.0.0.236/trunk@62456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -44,7 +44,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NavigationImpl
|
||||
|
||||
if (env->ExceptionOccurred()) {
|
||||
::util_ThrowExceptionToJava(env, "raptorWebShellLoadURL Exception: unable to extract Java string");
|
||||
if (urlStringChars != NULL)
|
||||
if (urlStringChars != nsnull)
|
||||
env->ReleaseStringChars(urlString, urlStringChars);
|
||||
return;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ JNIEXPORT void JNICALL Java_org_mozilla_webclient_wrapper_1native_NavigationImpl
|
||||
|
||||
if (initContext == nsnull) {
|
||||
::util_ThrowExceptionToJava(env, "Exception: null webShellPtr passed to raptorWebShellLoadURL");
|
||||
if (urlStringChars != NULL)
|
||||
if (urlStringChars != nsnull)
|
||||
env->ReleaseStringChars(urlString, urlStringChars);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user