You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by ni...@apache.org on 2005/04/23 06:46:08 UTC

svn commit: r164336 - /struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java

Author: niallp
Date: Fri Apr 22 21:46:07 2005
New Revision: 164336

URL: http://svn.apache.org/viewcvs?rev=164336&view=rev
Log:
Port to 1.2.x branch - explicit message when configSource/configPath yield a null URL

Modified:
    struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java

Modified: struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java
URL: http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java?rev=164336&r1=164335&r2=164336&view=diff
==============================================================================
--- struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java (original)
+++ struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/plugins/DigestingPlugIn.java Fri Apr 22 21:46:07 2005
@@ -126,7 +126,10 @@
                       + this.configSource + "]");
 
             URL configURL = this.getConfigURL(this.configPath, this.configSource);
-
+            if (configURL == null) throw new ServletException("Unable to locate XML data file at [path: "
+                      + this.configPath
+                      + ", source: "
+                      + this.configSource + "]");
             obj = digester.parse(configURL.openStream());
 
         } catch (IOException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org