Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Lucene.Net 4.8.0
-
None
Description
var english = new EnglishAnalyzer(Lucene.Net.Util.LuceneVersion.LUCENE_48);
var whitespace = new WhitespaceAnalyzer(Lucene.Net.Util.LuceneVersion.LUCENE_48);
var pf = new PerFieldAnalyzerWrapper(english, new Dictionary<string, Analyzer>() { { "foo", whitespace }});
var test1 = english.GetTokenStream(null, "test"); // Does not throw
var test2 = pf.GetTokenStream("", "test"); // works
var test3 = pf.GetTokenStream(null, "test"); // Throws NullReferenceException
I don't think I'm doing anything wrong, but the last line crashes with the abovementioned exception.
Attachments
Issue Links
- Is contained by
-
LUCENENET-616 Make Collections from Lucene.Net.Support into a 1st Class Feature
- Resolved