diff --git a/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java b/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java index 0957715aa1a..a358c2b416f 100644 --- a/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java +++ b/lucene/core/src/java/org/apache/lucene/util/automaton/NFARunAutomaton.java @@ -54,7 +54,7 @@ public class NFARunAutomaton implements ByteRunnable, TransitionAccessor { * better efficiency */ public NFARunAutomaton(Automaton automaton) { - this(automaton, Character.MAX_CODE_POINT); + this(automaton, Character.MAX_CODE_POINT + 1); } /**