DATAES-74 NPE in MappingElasticsearchEntityInformation

This commit is contained in:
Szabó Bálint 2014-03-24 12:06:01 +01:00
parent 5a78ba31f4
commit 403930d448

View File

@ -55,7 +55,7 @@ public class SimpleElasticsearchPersistentProperty extends
@Override
public boolean isIdProperty() {
return super.isIdProperty() || field != null ? SUPPORTED_ID_PROPERTY_NAMES.contains(getFieldName()) : false;
return super.isIdProperty() || (field != null ? SUPPORTED_ID_PROPERTY_NAMES.contains(getFieldName()) : false);
}
@Override