Skip to content

Commit 0ca2b60

Browse files
committed
Fix override in DotExpandingXContentParser
1 parent 3526556 commit 0ca2b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ public void skipChildren() throws IOException {
381381
}
382382

383383
@Override
384-
public XContentString xContentText() throws IOException {
384+
public XContentString xContentTextOrNull() throws IOException {
385385
if (state == State.EXPANDING_START_OBJECT) {
386386
throw new IllegalStateException("Can't get text on a " + currentToken() + " at " + getTokenLocation());
387387
}
388-
return super.xContentText();
388+
return super.xContentTextOrNull();
389389
}
390390

391391
@Override

0 commit comments

Comments
 (0)