Author: tam_nguyen
Date: 2009-10-28 06:40:05 -0400 (Wed, 28 Oct 2009)
New Revision: 438
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
Log:
GTNPORTAL-81 NPE when clone node by John
Modified:
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
===================================================================
---
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2009-10-28
10:11:59 UTC (rev 437)
+++
portal/trunk/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2009-10-28
10:40:05 UTC (rev 438)
@@ -373,10 +373,12 @@
}
page.setModifiable(false);
String[] accessPerms = page.getAccessPermissions();
- for (String per : accessPerms)
- {
- if (hasPermission(identity, per))
- return true;
+ if (accessPerms != null) {
+ for (String per : accessPerms)
+ {
+ if (hasPermission(identity, per))
+ return true;
+ }
}
return false;
}
Show replies by date