Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/cao/impl
In directory
james.mmbase.org:/tmp/cvs-serv13355/portlets-newsletter/src/java/com/finalist/newsletter/cao/impl
Modified Files:
NewsletterSubscriptionCAOImpl.java
Log Message:
CMSC-1153 - Another Newsletter stacktrace
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/cao/impl
See also: http://www.mmbase.org/jira/browse/CMSC-1153
Index: NewsletterSubscriptionCAOImpl.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/cao/impl/NewsletterSubscriptionCAOImpl.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- NewsletterSubscriptionCAOImpl.java 10 Nov 2008 07:20:15 -0000 1.36
+++ NewsletterSubscriptionCAOImpl.java 24 Feb 2009 11:16:08 -0000 1.37
@@ -148,6 +148,7 @@
log.debug("getSubscriptionrecord that newsletterId=" + newsletterId);
Node subscriptionNode = null;
+ if(cloud.hasNode(newsletterId)){
List<Node> records =
cloud.getNode(newsletterId).getRelatedNodes("subscriptionrecord");
for (Node record : records) {
if
(record.getStringValue("subscriber").equals(Integer.toString(userId))) {
@@ -155,6 +156,7 @@
break;
}
}
+ }
if (null != subscriptionNode) {
Subscription subscription = new Subscription();
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs