From: Maxim Valyanskiy Date: Mon, 22 Aug 2011 11:08:54 +0000 (+0000) Subject: HWPF: Range: fix incorrect assert that breaks Tika build X-Git-Tag: REL_3_8_BETA4~1^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5cb7f5c8e57947a736161731f7520feb918296cc;p=poi.git 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 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java index b8fe62c5c3..47cba3f950 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java @@ -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();