Operator == on Parameter does not check for null arguments ----------------------------------------------------------
Key: LUCENENET-472 URL: https://issues.apache.org/jira/browse/LUCENENET-472 Project: Lucene.Net Issue Type: Bug Components: Lucene.Net Core Affects Versions: Lucene.Net 2.9.4g Reporter: Pieter van Ginkel 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"); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira