Author: julien(a)jboss.com
Date: 2007-02-15 08:00:45 -0500 (Thu, 15 Feb 2007)
New Revision: 6294
Modified:
trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp
Log:
fixed an NPE with dashboard editor when a content handler is not deployed
Modified: trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp
===================================================================
--- trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp 2007-02-15
11:03:27 UTC (rev 6293)
+++ trunk/core/src/resources/portal-core-war/WEB-INF/jsp/dashboard/editpage.jsp 2007-02-15
13:00:45 UTC (rev 6294)
@@ -279,10 +279,13 @@
{
Window window = (Window)j.next();
Content portletContent = window.getContent();
+ if (portletContent != null)
+ {
%>
<option value="<%= window.getName() %>"><%=
portletContent.getDisplayName().getDefaultString() %>
</option>
<%
+ }
}
%>
</select>