Skip to content

Commit 14a7f67

Browse files
Mark as nullable
1 parent 7027710 commit 14a7f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/mapper/MappingLookup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public boolean isDataStreamTimestampFieldEnabled() {
534534
* If this mapping contains a timestamp field that is of type date, has doc values, and is either indexed or uses a doc values
535535
* skipper, this returns the field type for it.
536536
*/
537-
public DateFieldType getTimestampFieldType() {
537+
public @Nullable DateFieldType getTimestampFieldType() {
538538
final MappedFieldType mappedFieldType = fieldTypesLookup().get(DataStream.TIMESTAMP_FIELD_NAME);
539539
if (mappedFieldType instanceof DateFieldType dateMappedFieldType) {
540540
IndexType indexType = dateMappedFieldType.indexType();

0 commit comments

Comments
 (0)