You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "George Aroush (JIRA)" <ji...@apache.org> on 2008/07/17 00:43:32 UTC

[jira] Closed: (LUCENENET-121) StopFilter tries to access the i'th item of a hashtable as item[i] where i is not a key.

     [ https://issues.apache.org/jira/browse/LUCENENET-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush closed LUCENENET-121.
-----------------------------------


> StopFilter  tries to access the i'th item of a hashtable as item[i] where i is not a key.
> -----------------------------------------------------------------------------------------
>
>                 Key: LUCENENET-121
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-121
>             Project: Lucene.Net
>          Issue Type: Bug
>         Environment: Lucene.Net 2.3.1
>            Reporter: Digy
>            Assignee: George Aroush
>         Attachments: Another patch.rar, StopFilter v1.patch, StopFilter v1.patch
>
>
> Constructor of StopFilter  tries to access the i'th item of a hashtable as item[i] where i is not a key.
> {code}
>                 public StopFilter(TokenStream input, System.Collections.Hashtable stopWords, bool ignoreCase) : base(input)
> 		{
> 			if (stopWords is CharArraySet)
> 			{
> 				this.stopWords = (CharArraySet) stopWords;
> 			}
> 			else
> 			{
> 				this.stopWords = new CharArraySet(stopWords.Count, ignoreCase);
> 				for (int i = 0; i < stopWords.Count; i++)
> 				{
> 					this.stopWords.Add(stopWords[i]); // <----- i is not a "key" it is index.
> 				}
> 			}
> 		}
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.