]> source.dussan.org Git - poi.git/commitdiff
HWPF: Range: fix incorrect assert that breaks Tika build
authorMaxim Valyanskiy <maxcom@apache.org>
Mon, 22 Aug 2011 11:08:54 +0000 (11:08 +0000)
committerMaxim Valyanskiy <maxcom@apache.org>
Mon, 22 Aug 2011 11:08:54 +0000 (11:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1160202 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java

index b8fe62c5c354ccda9551c2a8d0aaabef9c08f038..47cba3f9501a397959d0efe23fbda605bca87756 100644 (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();