Author: sviluppatorefico
Date: 2009-09-22 05:23:30 -0400 (Tue, 22 Sep 2009)
New Revision: 13806
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java
Log:
It fixes a bug when the user take the dashboard for the first time. If there is some
denied access, the dashboard is half imported and it generates a NullPointerException. See
JBPORTAL-2456
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java 2009-09-16
16:34:38 UTC (rev 13805)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/CustomizationManagerService.java 2009-09-22
09:23:30 UTC (rev 13806)
@@ -331,7 +331,7 @@
{
portalObject.copy(to, portalObject.getName(), false);
}
- copy(portalObject, to.getChild(portalObject.getName()));
+ copy(portalObject, to == null ? null :
to.getChild(portalObject.getName()));
}
catch (IllegalArgumentException e)
{
Show replies by date