[seam-commits] Seam SVN: r9386 - trunk/src/main/org/jboss/seam/deployment.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Oct 23 07:31:39 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-10-23 07:31:39 -0400 (Thu, 23 Oct 2008)
New Revision: 9386

Modified:
   trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java
Log:
Better logging

Modified: trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java	2008-10-23 06:10:59 UTC (rev 9385)
+++ trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java	2008-10-23 11:31:39 UTC (rev 9386)
@@ -17,7 +17,15 @@
    public FileDescriptor(String name, ClassLoader classLoader)
    {
       this.name = name;
+      if (name == null)
+      {
+         throw new NullPointerException("Name cannot be null");
+      }
       this.url = classLoader.getResource(name);
+      if (this.url == null)
+      {
+         throw new NullPointerException("Cannot find URL from classLoader for " + name);
+      }
    }
 
    public String getName()




More information about the seam-commits mailing list