mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 22:29:07 +00:00
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:
parent
dc9a74b316
commit
5e634823a9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user