From 5cb7f5c8e57947a736161731f7520feb918296cc Mon Sep 17 00:00:00 2001
From: Maxim Valyanskiy <maxcom@apache.org>
Date: Mon, 22 Aug 2011 11:08:54 +0000
Subject: 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
---
 src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
-- 
cgit v1.2.3