import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController;
import org.mxchange.addressbook.events.sharing.AddressbookSharingEvent;
import org.mxchange.addressbook.events.sharing.StartedAddressbookSharingEvent;
import org.mxchange.addressbook.events.sharing.type.SharingType;
import org.mxchange.jusercore.events.login.UserLoggedInEvent;
import org.mxchange.jusercore.model.user.User;
import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
-import org.mxchange.addressbook.beans.login.AddressbookUserLoginWebSessionController;
/**
* A bean for sharing address books with other users
if (null == event) {
// Is null
throw new NullPointerException("event is null"); //NOI18N
- } else if (event.getUser() == null) {
+ } else if (event.getLoggedInUser() == null) {
// user is null
throw new NullPointerException("event.user is null"); //NOI18N
}
// Init share list
- this.sharedAddressbooks = this.shareBean.allSharedAddressbooks(event.getUser());
+ this.sharedAddressbooks = this.shareBean.allSharedAddressbooks(event.getLoggedInUser());
}
@Override