Check the entity as well

This commit is contained in:
Jesse Boyd 2016-02-09 22:17:44 +11:00
parent 7cfb33dd3b
commit 48cb23d04f

View File

@ -152,7 +152,7 @@ public class HistoryExtent extends AbstractDelegateExtent {
@Override
public Entity createEntity(final Location location, final BaseEntity state) {
final Entity entity = super.createEntity(location, state);
if (state != null) {
if (state != null && entity != null) {
changeSet.add(new EntityCreate(location, state, entity));
}
return entity;