Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/java/com/finalist/newsletter/cao/impl
In directory james.mmbase.org:/tmp/cvs-serv15046/cao/impl

Modified Files:
      Tag: b1_5
        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.30.2.3
retrieving revision 1.30.2.4
diff -u -b -r1.30.2.3 -r1.30.2.4
--- NewsletterSubscriptionCAOImpl.java  10 Nov 2008 06:47:00 -0000      1.30.2.3
+++ NewsletterSubscriptionCAOImpl.java  24 Feb 2009 12:17:53 -0000      1.30.2.4
@@ -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

Reply via email to