[seam-commits] Seam SVN: r9246 - trunk/src/main/org/jboss/seam/init.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Oct 9 10:04:56 EDT 2008


Author: jbalunas at redhat.com
Date: 2008-10-09 10:04:56 -0400 (Thu, 09 Oct 2008)
New Revision: 9246

Modified:
   trunk/src/main/org/jboss/seam/init/Initialization.java
Log:
JBSEAM-2455 - fixed if path does not exist

Modified: trunk/src/main/org/jboss/seam/init/Initialization.java
===================================================================
--- trunk/src/main/org/jboss/seam/init/Initialization.java	2008-10-09 07:54:56 UTC (rev 9245)
+++ trunk/src/main/org/jboss/seam/init/Initialization.java	2008-10-09 14:04:56 UTC (rev 9246)
@@ -805,10 +805,14 @@
          try 
          {
             URL resourcePath = servletContext.getResource(path);
-            if (resourcePath.getProtocol().equals("file")) 
+            if ((resourcePath != null) && (resourcePath.getProtocol().equals("file"))) 
             {
                realPath = resourcePath.getPath();
             }
+            else
+            {
+               log.warn("Unable to determine real path from servlet context for \"" + path + "\" path does not exist.");
+            }
          }
          catch (MalformedURLException e) 
          {




More information about the seam-commits mailing list