[portal-commits] JBoss Portal SVN: r8997 - branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/controller.

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Sat Nov 17 17:27:52 EST 2007


Author: sohil.shah at jboss.com
Date: 2007-11-17 17:27:52 -0500 (Sat, 17 Nov 2007)
New Revision: 8997

Modified:
   branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/controller/UIController.java
Log:


Modified: branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/controller/UIController.java
===================================================================
--- branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/controller/UIController.java	2007-11-17 22:21:58 UTC (rev 8996)
+++ branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/controller/UIController.java	2007-11-17 22:27:52 UTC (rev 8997)
@@ -333,10 +333,13 @@
             if(cour instanceof UIWindow)
             {
                org.jboss.portal.presentation.impl.model.UIWindowImpl window = (org.jboss.portal.presentation.impl.model.UIWindowImpl)cour;
-               responseBuffer.append("<div>");
-               responseBuffer.append("<div id=\"title\">"+window.getContent().getTitle()+"</div>");
-               responseBuffer.append("<div id=\"content\">"+window.getContent().getMarkup()+"</div>");
-               responseBuffer.append("</div><br/><br/>");
+               if(window.getContent() != null)
+               {
+                  responseBuffer.append("<div>");
+                  responseBuffer.append("<div id=\"title\">"+window.getContent().getTitle()+"</div>");
+                  responseBuffer.append("<div id=\"content\">"+window.getContent().getMarkup()+"</div>");
+                  responseBuffer.append("</div><br/><br/>");
+               }
             }
          }
       }




More information about the portal-commits mailing list