Skip to content

Commit

Permalink
Continue instead of throwing exception. See #43
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Apr 21, 2017
1 parent da40e35 commit 01176df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static Map<TypeDirectionPair, Map<String, Object>> loadDynamicAssociation
associatedEntity = mappingContext.findPersistentEntityForLabels(Collections.singletonList(targetType));
}
if(associatedEntity == null) {
throw new NonPersistentTypeException(labels.toString());
continue;
}
Object proxy = mappingContext.getProxyFactory().createProxy(
session,
Expand Down

1 comment on commit 01176df

@mburak
Copy link
Contributor

@mburak mburak commented on 01176df Apr 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is breaking on

DynamicToManyAssociation dynamicAssociation = new DynamicToManyAssociation(graphPersistentEntity, graphPersistentEntity.getMappingContext(), key.getType(), associatedEntity);
giving a NPE. It should do a null check.

Please sign in to comment.