aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxim Valyanskiy <maxcom@apache.org>2011-08-22 11:08:54 +0000
committerMaxim Valyanskiy <maxcom@apache.org>2011-08-22 11:08:54 +0000
commit5cb7f5c8e57947a736161731f7520feb918296cc (patch)
treece7db2dc0120ce2de364975d7522580d7ce8ea4d
parentfd7ecac05205738442626de215254f55399d23c4 (diff)
downloadpoi-5cb7f5c8e57947a736161731f7520feb918296cc.tar.gz
poi-5cb7f5c8e57947a736161731f7520feb918296cc.zip
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
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java2
1 files changed, 1 insertions, 1 deletions
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();