jakarta-bcel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r230962 - /jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierAppFrame.java
Date Tue, 09 Aug 2005 03:45:42 GMT
Author: dbrosius
Date: Mon Aug  8 20:45:35 2005
New Revision: 230962

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

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

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierAppFrame.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierAppFrame.java?rev=230962&r1=230961&r2=230962&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierAppFrame.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/verifier/VerifierAppFrame.java Mon Aug  8
20:45:35 2005
@@ -331,11 +331,11 @@
         JavaClass jc = null;
 	try {
           jc = Repository.lookupClass(v.getClassName());
+          all3amsg += "Method '"+jc.getMethods()[i]+"': "+vr.getMessage().replace('\n','
')+"\n\n";
         } catch (ClassNotFoundException ex) {
           // FIXME: handle the error
           ex.printStackTrace();
         }
-        all3amsg += "Method '"+jc.getMethods()[i]+"': "+vr.getMessage().replace('\n',' ')+"\n\n";
       }
     }
     pass3aTextPane.setText(all3amsg);
@@ -363,11 +363,11 @@
         JavaClass jc = null;
 	try {
           jc = Repository.lookupClass(v.getClassName());
+          all3bmsg += "Method '"+jc.getMethods()[i]+"': "+vr.getMessage().replace('\n','
')+"\n\n";
         } catch (ClassNotFoundException ex) {
           // FIXME: handle the error
           ex.printStackTrace();
         }
-        all3bmsg += "Method '"+jc.getMethods()[i]+"': "+vr.getMessage().replace('\n',' ')+"\n\n";
       }
     }
     pass3bTextPane.setText(all3bmsg);



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