You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by di...@apache.org on 2008/11/16 14:17:55 UTC
svn commit: r718022 -
/incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentTermPositionVector.cs
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
+}