bruno 2003/05/07 04:19:13
Modified: src/java/org/apache/cocoon/environment/wrapper EnvironmentWrapper.java Log: setURI: fix incorrect initialisation of lastContext in case prefix == null Revision Changes Path 1.5 +4 -1 cocoon-2.1/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java Index: EnvironmentWrapper.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/environment/wrapper/EnvironmentWrapper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- EnvironmentWrapper.java 29 Apr 2003 10:45:20 -0000 1.4 +++ EnvironmentWrapper.java 7 May 2003 11:19:13 -0000 1.5 @@ -308,6 +308,9 @@ if(getLogger().isDebugEnabled()) { getLogger().debug("Setting uri (prefix=" + prefix + ", uris=" + uris + ")"); } + if ( !this.initializedComponents) { + this.initComponents(); + } if (prefix != null) { setContext(getRootContext()); setURIPrefix(prefix);