[jboss-cvs] JBossAS SVN: r75875 - projects/jboss-deployers/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/annotations.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 16 03:35:30 EDT 2008


Author: alesj
Date: 2008-07-16 03:35:30 -0400 (Wed, 16 Jul 2008)
New Revision: 75875

Modified:
   projects/jboss-deployers/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/annotations/GenericAnnotationResourceVisitor.java
Log:
Check null stream.

Modified: projects/jboss-deployers/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/annotations/GenericAnnotationResourceVisitor.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/annotations/GenericAnnotationResourceVisitor.java	2008-07-16 07:34:07 UTC (rev 75874)
+++ projects/jboss-deployers/trunk/deployers-impl/src/main/org/jboss/deployers/plugins/annotations/GenericAnnotationResourceVisitor.java	2008-07-16 07:35:30 UTC (rev 75875)
@@ -85,6 +85,9 @@
       try
       {
          InputStream stream = resource.getInputStream();
+         if (stream == null)
+            throw new IllegalArgumentException("Null resource input stream: " + resource);
+
          try
          {
             CtClass ctClass = pool.makeClass(stream);




More information about the jboss-cvs-commits mailing list