Bug 793557 (JBEPP-636) - NullPointerException with LDAP in GroupDAOImpl.findGroups
Summary: NullPointerException with LDAP in GroupDAOImpl.findGroups
Keywords:
Status: CLOSED NEXTRELEASE
Alias: JBEPP-636
Product: JBoss Enterprise Portal Platform 5
Classification: JBoss
Component: Portal
Version: 5.0.1.GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.1.0.CR01
Assignee: Thomas Heute
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-15 13:51 UTC by Martin Weiler
Modified: 2010-11-23 07:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-23 07:58:44 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEPP-636 0 None None None Never

Description Martin Weiler 2010-11-15 13:51:43 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A000000458B9
project_key: JBEPP

After configuring EPP 5 with LDAP, configuring portlets in edit mode fails with a NullPointerException:

Caused by: java.lang.NullPointerException
	at org.exoplatform.services.organization.idm.GroupDAOImpl.findGroups(GroupDAOImpl.java:364)
	at org.exoplatform.webui.organization.UIGroupMembershipSelector.<init>(UIGroupMembershipSelector.java:68)
	... 76 more


This is caused by a failing null check in the findGroups method. If parent is null and id is not null a NPE is thrown:

if ((parent == null && id == null) || (id != null && id.equals(parent.getId())))

Comment 1 boleslaw.dawidowicz 2010-11-22 18:56:28 UTC
Sync of https://jira.jboss.org/browse/GTNPORTAL-1677

Comment 2 boleslaw.dawidowicz 2010-11-22 19:39:50 UTC
Need to sync fix from GateIn trunk http://fisheye.jboss.org/changelog/gatein/portal/trunk?cs=5207

Comment 3 Thomas Heute 2010-11-22 21:07:03 UTC
Link: Added: This issue is related to GTNPORTAL-1677



Note You need to log in before you can comment on or make changes to this bug.