NullReferenceException in ThreadLocal when Lucene.Net compiled for .Net 2.0
---------------------------------------------------------------------------
Key: LUCENENET-477
URL: https://issues.apache.org/jira/browse/LUCENENET-477
Project: Lucene.Net
Issue Type: Bug
Components: Lucene.Net Core
Affects Versions: Lucene.Net 2.9.4g
Environment: .Net 2.0
Reporter: Andrew Sampson
A NullReferenceException occurs in Lucene.Net.Util.ThreadLocal. This class is
only included when Lucene is compiled for .Net 2.0.
The cause is that the threadstatic "slots" variable is lazily-initialized, but
there is no null-check in the dispose.
--
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