You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2003/10/31 16:53:19 UTC
Re: cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication/xsp
DocumentReferencesHelper.java
diff -u -r1.10 -r1.11
--- DocumentReferencesHelper.java 31 Oct 2003 15:26:59 -0000 1.10
+++ DocumentReferencesHelper.java 31 Oct 2003 15:50:53 -0000 1.11
@@ -192,15 +192,21 @@
area,
inconsistentFiles[i]);
language =
fileMapper.getLanguage(inconsistentFiles[i]);
[...]
+ if (language != null) {
How can it be that the language of a file is null?
I think this should never happen.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: cvs commit:
cocoon-lenya/src/java/org/apache/lenya/cms/publication/xsp
DocumentReferencesHelper.java
Posted by Christian Egli <ch...@wyona.com>.
On Fri, 2003-10-31 at 16:53, Andreas Hartmann wrote:
> diff -u -r1.10 -r1.11
> --- DocumentReferencesHelper.java 31 Oct 2003 15:26:59 -0000 1.10
> +++ DocumentReferencesHelper.java 31 Oct 2003 15:50:53 -0000 1.11
> @@ -192,15 +192,21 @@
> area,
> inconsistentFiles[i]);
> language =
> fileMapper.getLanguage(inconsistentFiles[i]);
>
> [...]
>
> + if (language != null) {
>
>
> How can it be that the language of a file is null?
> I think this should never happen.
This stuff is based on regular expressions and sub-matches. If there is
no sub-match the regexp engine returns null.
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org