Use ExceptionCheck, since we don't need the actual exception

Original committer: pedemont%us.ibm.com
Original revision: 1.18
Original date: 2004/12/23 20:51:36
This commit is contained in:
pedemont%us.ibm.com 2006-09-27 15:18:43 +00:00
parent dc9a74b316
commit 5e634823a9

View File

@ -535,8 +535,7 @@ ThrowXPCOMException(JNIEnv* env, const nsresult aErrorCode,
{
// Only throw this exception if one hasn't already been thrown, so we don't
// mask a previous exception/error.
jthrowable throwObj = env->ExceptionOccurred();
if (throwObj != nsnull)
if (env->ExceptionCheck())
return;
// Create parameters and method signature. Max of 2 params. The error code
@ -555,6 +554,7 @@ ThrowXPCOMException(JNIEnv* env, const nsresult aErrorCode,
methodSig.Append(")V");
// create exception object
jthrowable throwObj = nsnull;
jmethodID mid = env->GetMethodID(xpcomExceptionClass, "<init>",
methodSig.get());
if (mid) {