HHH-13980 NullPointerException on AbstractEntityGraphVisitationStrategy.startingCollectionIndex
This commit is contained in:
parent
6df82bb6a6
commit
5963dc7fe8
|
@ -180,11 +180,13 @@ public abstract class AbstractEntityGraphVisitationStrategy
|
|||
AttributeNodeImplementor attributeNode = attributeStack.getCurrent();
|
||||
GraphImplementor subGraphNode = null;
|
||||
|
||||
if ( attributeNode != null ) {
|
||||
Map<Class, Subgraph> subGraphs = attributeNode.getKeySubgraphs();
|
||||
Class javaType = indexDefinition.getType().getReturnedClass();
|
||||
if (!subGraphs.isEmpty() && subGraphs.containsKey(javaType)) {
|
||||
subGraphNode = (GraphImplementor) subGraphs.get(javaType);
|
||||
}
|
||||
}
|
||||
|
||||
graphStack.push( subGraphNode );
|
||||
|
||||
|
|
Loading…
Reference in New Issue