You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2004/06/28 10:32:13 UTC
cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/publication PublicationFactory.java
andreas 2004/06/28 01:32:13
Modified: src/java/org/apache/lenya/cms/publication
PublicationFactory.java
Log:
getPublication() throws exception when publication could not be created
Revision Changes Path
1.27 +4 -2 cocoon-lenya/src/java/org/apache/lenya/cms/publication/PublicationFactory.java
Index: PublicationFactory.java
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/publication/PublicationFactory.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- PublicationFactory.java 3 May 2004 13:52:46 -0000 1.26
+++ PublicationFactory.java 28 Jun 2004 08:32:13 -0000 1.27
@@ -97,7 +97,9 @@
}
}
-// assert publication != null;
+ if (publication == null) {
+ throw new PublicationException("The publication for ID [" + id + "] could not be created.");
+ }
return publication;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org