[jboss-cvs] JBossAS SVN: r57826 - trunk/ejb3/src/main/org/jboss/ejb3/deployers
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 25 13:41:37 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-10-25 13:41:36 -0400 (Wed, 25 Oct 2006)
New Revision: 57826
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DeploymentUnit.java
Log:
Guard against a null classpath
Modified: trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DeploymentUnit.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DeploymentUnit.java 2006-10-25 15:01:20 UTC (rev 57825)
+++ trunk/ejb3/src/main/org/jboss/ejb3/deployers/JBoss5DeploymentUnit.java 2006-10-25 17:41:36 UTC (rev 57826)
@@ -149,16 +149,20 @@
va.setRecurseFilter(noJars);
FilterVirtualFileVisitor visitor = new FilterVirtualFileVisitor(filter, va);
- for (VirtualFile vf : deploymentInfo.getDeploymentContext().getClassPath())
+ List<VirtualFile> classpath = deploymentInfo.getDeploymentContext().getClassPath();
+ if( classpath != null )
{
- try
+ for (VirtualFile vf : classpath)
{
- vf.visit(visitor);
+ try
+ {
+ vf.visit(visitor);
+ }
+ catch (IOException e)
+ {
+ throw new RuntimeException(e);
+ }
}
- catch (IOException e)
- {
- throw new RuntimeException(e);
- }
}
return visitor.getMatched();
}
More information about the jboss-cvs-commits
mailing list