Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Lucene.Net 2.9.4g
-
None
Description
The operator == and operator != of Parameter does not check for null arguments. This means that the following construct throws an NullReferenceException:
if (store == null)
throw new ArgumentNullException("store");
Work around is to write the above as:
if ((object)store == null)
throw new ArgumentNullException("store");