jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r230963 - /jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java
Date Tue, 09 Aug 2005 03:46:58 GMT
Author: dbrosius
Date: Mon Aug  8 20:46:52 2005
New Revision: 230963

URL: http://svn.apache.org/viewcvs?rev=230963&view=rev
Log:
'guard' against npe's

Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java?rev=230963&r1=230962&r2=230963&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifyDialog.java Mon Aug  8 20:46:52
2005
@@ -504,17 +504,18 @@
 		JavaClass jc = null;
 		try {
 			jc = Repository.lookupClass(class_name);
+			
+			int nr = jc.getMethods().length;
+			for (int i=0; i<nr; i++) {
+				vr = v.doPass3b(i);
+				if (vr.getStatus() != VerificationResult.VERIFIED_OK){
+					color = Color.red;
+					break;
+				}
+			}
 		} catch (ClassNotFoundException ex) {
 			// FIXME: report the error
 			ex.printStackTrace();
-		}
-		int nr = jc.getMethods().length;
-		for (int i=0; i<nr; i++) {
-			vr = v.doPass3b(i);
-			if (vr.getStatus() != VerificationResult.VERIFIED_OK){
-				color = Color.red;
-				break;
-			}
 		}
 	}
 	else{



---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


Mime
View raw message