commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1093960 - /commons/sandbox/runtime/trunk/src/main/native/shared/error.c
Date Sat, 16 Apr 2011 10:49:09 GMT
Author: mturk
Date: Sat Apr 16 10:49:09 2011
New Revision: 1093960

URL: http://svn.apache.org/viewvc?rev=1093960&view=rev
Log:
Fix core

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/error.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/error.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/error.c?rev=1093960&r1=1093959&r2=1093960&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/error.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/error.c Sat Apr 16 10:49:09 2011
@@ -632,7 +632,7 @@ AcrThrowByName(JNI_STDENV, const char *c
 void
 AcrThrow(JNI_STDENV, int cls, const char *msg)
 {
-    jclass ec = 0;
+    jclass ec;
 
     if (env == 0)
         env = AcrGetJNIEnv();
@@ -654,7 +654,8 @@ AcrThrow(JNI_STDENV, int cls, const char
         }
         return;
     }
-    if (_throw_classes[cls].clazz == 0) {
+    ec = _throw_classes[cls].clazz;
+    if (ec == 0) {
         ec = (*env)->FindClass(env, _throw_classes[cls].name);
         if (ec == 0) {
             /* If the class cannot be found,



Mime
View raw message