Author: nscavell
Date: 2011-09-28 16:25:47 -0400 (Wed, 28 Sep 2011)
New Revision: 7552
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/binding/xml/NavigationMarshaller.java
Log:
GTNPORTAL-2133: Exception occurs when exporting navigation nodes that have no labels.
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/binding/xml/NavigationMarshaller.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/binding/xml/NavigationMarshaller.java 2011-09-28
19:28:00 UTC (rev 7551)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/mop/management/binding/xml/NavigationMarshaller.java 2011-09-28
20:25:47 UTC (rev 7552)
@@ -132,6 +132,8 @@
{
for (LocalizedString label : node.getLabels())
{
+ if (label.getValue() == null) continue;
+
writer.writeStartElement(Element.LABEL);
if (label.getLang() != null)
{
Show replies by date