r7058 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7058 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- Date: Fri, 14 Dec 2007 14:26:29 -0600 (CST)
Author: marinaz
Date: 2007-12-14 14:26:26 -0600 (Fri, 14 Dec 2007)
New Revision: 7058
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookSystemBean.java
Log:
We need to check if the EntityManager contains user, not user.getAccount().
Cechking the latter results in the LazyInitializationException.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookSystemBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookSystemBean.java 2007-12-14 19:52:42 UTC (rev 7057)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookSystemBean.java 2007-12-14 20:26:26 UTC (rev 7058)
@@ -91,7 +91,7 @@
}
public FacebookAccount lookupFacebookAccount(Viewpoint viewpoint, User user) throws NotFoundException {
- if (!em.contains(user.getAccount()))
+ if (!em.contains(user))
user = EJBUtil.lookupGuid(em, User.class, user.getGuid());
ExternalAccount externalAccount = externalAccounts.lookupExternalAccount(viewpoint, user, ExternalAccountType.FACEBOOK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]