Skip to content

Commit 403930d

Browse files
DATAES-74 NPE in MappingElasticsearchEntityInformation
1 parent 5a78ba3 commit 403930d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/springframework/data/elasticsearch/core/mapping/SimpleElasticsearchPersistentProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String getFieldName() {
5555

5656
@Override
5757
public boolean isIdProperty() {
58-
return super.isIdProperty() || field != null ? SUPPORTED_ID_PROPERTY_NAMES.contains(getFieldName()) : false;
58+
return super.isIdProperty() || (field != null ? SUPPORTED_ID_PROPERTY_NAMES.contains(getFieldName()) : false);
5959
}
6060

6161
@Override

0 commit comments

Comments
 (0)