You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by Rolf Kulemann <ro...@apache.org> on 2004/09/11 21:23:48 UTC
Re: svn commit: rev 43539 -
incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source
On Wed, 2004-09-08 at 17:44, andreas@apache.org wrote:
> Author: andreas
> Date: Wed Sep 8 08:44:29 2004
> New Revision: 43539
>
> Added:
> incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/
> incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
> Log:
> adding FallbackSourceFactory
>
> Added: incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java
> ==============================================================================
> --- (empty file)
> +++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/FallbackSourceFactory.java Wed Sep 8 08:44:29 2004
> @@ -0,0 +1,174 @@
...
> +public class FallbackSourceFactory extends AbstractLogEnabled implements SourceFactory,
...
> +
> + if (resolvedUri == null) {
> + final String contextUri = "context://" + resolvedUri.substring("fallback://".length());
> + resolvedUri = contextUri;
> + }
I guess "resolvedUri.substring..." will cause a NullPointerException.
--
Rolf Kulemann
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org
Re: svn commit: rev 43539 - incubator/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source
Posted by Andreas Hartmann <an...@apache.org>.
Rolf Kulemann wrote:
[...]
>>+ if (resolvedUri == null) {
>>+ final String contextUri = "context://" + resolvedUri.substring("fallback://".length());
>>+ resolvedUri = contextUri;
>>+ }
>
>
> I guess "resolvedUri.substring..." will cause a NullPointerException.
Fixed. Thanks for reporting!
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org