HI,
I am customizing liferay Registration flow through
EXT by extending
addUser Method of
CreateAccountAction . While registering the user, i am creating the
organization using below code:
Organization org = OrganizationLocalServiceUtil.addOrganization(userId],
OrganizationConstants.DEFAULT_PARENT_ORGANIZATION_ID, "some organization name", OrganizationConstants.TYPE_REGULAR_ORGANIZATION, true, 0, 0, ListTypeConstants.ORGANIZATION_STATUS_DEFAULT, "something", true, serviceContext);
But Always i am getting
Null pointer exception for expando values as I am using some additional fields for user using expando.
I read some forum to add expando attributes into organization if you use expando values for user. So i inject those expando attributes into organization by setting in serviceContext like this?
serviceContext.setExpandoBridgeAttributes(expandoBridgeAttributes);
1. what is the purpose of injecting expando attributes while creating organization?
2. why I am getting
[ExpandoBridgeImpl:507] java.lang.NullPointerException always ?
Firmi prego dentro per inbandierare questo come inadeguato.