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

git-svn-id: svn://10.0.0.236/trunk@166996 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2004-12-23 20:51:36 +00:00
parent c78e4a0486
commit cf53474d2b
2 changed files with 3 additions and 4 deletions

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) {