droolsjbpm/drools — pull request #109 by mareki (2012-03-21 10:02:06+00:00)
Title: Solve potential NPE

We had a NullPointerException while working with jBPM5 and Drools. The NPE was caused within JpaPersistenceContextManager#beginCommandScopedEntityManager. The local CommandScopedEntityManager which was fetched form the environment was never used. instead the global CommandScopedEntityManager was always accessed. If the global CommandScopedEntityManager is null we get a NPE.