Revision: 4114
Author: solomax666
Date: Sat Aug 27 03:44:23 2011
Log: - Null Organisation_Users list is inited to empty list
http://code.google.com/p/openmeetings/source/detail?r=4114
Modified:
/branches/dev/injection/src/app/org/openmeetings/app/data/user/Organisationmanagement.java
=======================================
---
/branches/dev/injection/src/app/org/openmeetings/app/data/user/Organisationmanagement.java
Sat Aug 27 03:27:19 2011
+++
/branches/dev/injection/src/app/org/openmeetings/app/data/user/Organisationmanagement.java
Sat Aug 27 03:44:23 2011
@@ -1,5 +1,6 @@
package org.openmeetings.app.data.user;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
@@ -485,6 +486,9 @@
//user should be updated to have recent
organisation_users list
List<Organisation_Users> l = u.getOrganisation_users();
+ if (l == null) {
+ l = new ArrayList<Organisation_Users>();
+ }
l.add(orgUser);
u.setOrganisation_users(l);
usersDao.updateUser(u);
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.