Issue Type: Bug Bug
Affects Versions: 4.1.8
Assignee: Unassigned
Components: entity-manager
Created: 14/Dec/12 3:15 PM
Description:

The following line is causing a transient NPE while doing a simple select query:

`EntityEntry entry = (EntityEntry) me.getValue();`

We are using Hibernate 4.1.8.Final with Spring 3.1

StackTrace:

java.lang.NullPointerException
at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:148)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:88)
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:58)
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1185)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1240)
at org.hibernate.internal.QueryImpl.list(QueryImpl.java:101)
...

Environment: Hibernate 4.1.8.Final / MySQL 5.1
Project: Hibernate ORM
Priority: Major Major
Reporter: artur rivilis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira