[jboss-cvs] JBossAS SVN: r69873 - branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/entity.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Feb 17 19:00:29 EST 2008
Author: bdecoste
Date: 2008-02-17 19:00:29 -0500 (Sun, 17 Feb 2008)
New Revision: 69873
Modified:
branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/entity/ManagedEntityManagerFactory.java
Log:
[JBPAPP-621] fixed NPE for EntityManager injection in @PostConstruct
Modified: branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/entity/ManagedEntityManagerFactory.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/entity/ManagedEntityManagerFactory.java 2008-02-17 23:47:49 UTC (rev 69872)
+++ branches/JBPAPP_4_2_0_GA_CP/ejb3/src/main/org/jboss/ejb3/entity/ManagedEntityManagerFactory.java 2008-02-18 00:00:29 UTC (rev 69873)
@@ -57,7 +57,11 @@
{
Map map = nonTxStack.get();
if (map == null)
+ {
map = new IdentityHashMap();
+ nonTxStack.push(map);
+ }
+
EntityManager em = (EntityManager)map.get(this);
if (em == null)
{
More information about the jboss-cvs-commits
mailing list