Skip to content

Conversation

odrotbohm
Copy link
Member

SharedEntityManagerCreator.createSharedEntityManager(EntityManagerFactory,
Map, boolean) now correctly forwards an empty array in case the
EntityManagerFactoryInfo returns null for the call to
….getEntityManagerInterface().

Previously the varargs invocation had turned null into an array with a
null value which caused a NullPointerException in the call to
Proxy.newProxyInstance(…) further down the call stack

Issue: SPR-10678

SharedEntityManagerCreator.createSharedEntityManager(EntityManagerFactory,
Map, boolean) now correctly forwards an empty array in case the
EntityManagerFactoryInfo returns null for the call to
….getEntityManagerInterface().

Previously the varargs invocation had turned null into an array with a
null value which caused a NullPointerException in the call to
Proxy.newProxyInstance(…) further down the call stack

Issue: SPR-10678
@ghost ghost assigned philwebb Jun 24, 2013
philwebb added a commit that referenced this pull request Jul 19, 2013
# By Oliver Gierke
* SPR-10678:
  Fixed potential NPE in SharedEntityManagerCreator
@philwebb philwebb closed this Jul 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants