I cannot easily reproduce yet, but the NPE is at:
{code} Caused by: java.lang.NullPointerException at org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:164) at org.hibernate.collection.internal.AbstractPersistentCollection$1.doWork(AbstractPersistentCollection.java:157) {code}
Code lines: {code:java} protected boolean readSize() { if ( !initialized ) { if ( cachedSize != -1 && !hasQueuedOperations() ) { return true; } else { final boolean isExtraLazy = withTemporarySessionIfNeeded( new LazyInitializationWork<Boolean>() { @Override public Boolean doWork() { final CollectionEntry entry = session . getPersistenceContext() . getCollectionEntry( AbstractPersistentCollection . this ); if ( entry != null ) { final CollectionPersister persister = entry.getLoadedPersister(); if ( persister.isExtraLazy() ) { // persister is null here if ( hasQueuedOperations() ) { {code} |
|