lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r718022 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs
Date Sun, 16 Nov 2008 13:17:55 GMT
Author: digy
Date: Sun Nov 16 05:17:54 2008
New Revision: 718022

URL: http://svn.apache.org/viewvc?rev=718022&view=rev
Log:
LUCENENET-146 (BUG in segmenttermpositionvector.cs (similar to LUCENENET-145))

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentTermPositionVector.cs?rev=718022&r1=718021&r2=718022&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs Sun Nov
16 05:17:54 2008
@@ -46,7 +46,7 @@
 			TermVectorOffsetInfo[] result = TermVectorOffsetInfo.EMPTY_OFFSET_INFO;
 			if (offsets == null)
 				return null;
-			if (index >= 0 && index < offsets.Length)
+			if (index >= 0 && index < offsets.GetLength(0))
 			{
 				result = offsets[index];
 			}
@@ -62,7 +62,7 @@
 			int[] result = EMPTY_TERM_POS;
 			if (positions == null)
 				return null;
-			if (index >= 0 && index < positions.Length)
+			if (index >= 0 && index < positions.GetLength(0))
 			{
 				result = positions[index];
 			}
@@ -70,4 +70,4 @@
 			return result;
 		}
 	}
-}
\ No newline at end of file
+}



Mime
View raw message