Author: jbalunas(a)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)
{