HWPF: Range: fix incorrect assert that breaks Tika build

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maxim Valyanskiy 2011-08-22 11:08:54 +00:00
parent ec3ab612c8
commit 583fb49254
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ public class Range { // TODO -instantiable superclass
{
if ( _start < 0 )
throw new AssertionError();
if ( _start >= _text.length() )
if ( _start > _text.length() )
throw new AssertionError();
if ( _end < 0 )
throw new AssertionError();