bug 749917 - crash in mozilla::AndroidBridge::CheckURIVisited r=kats

This commit is contained in:
Brad Lassey 2012-07-02 13:54:10 -04:00
parent 92a88764b8
commit 9e9c410591

View File

@ -1644,8 +1644,10 @@ AndroidBridge::CheckURIVisited(const nsAString& aURI)
if (!env)
return;
AutoLocalJNIFrame jniFrame(env);
AutoLocalJNIFrame jniFrame(env, 1);
jstring jstrURI = env->NewString(nsPromiseFlatString(aURI).get(), aURI.Length());
// If creating the string fails, just bail
if (!jniFrame.CheckForException())
env->CallStaticVoidMethod(mGeckoAppShellClass, jCheckUriVisited, jstrURI);
}