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

Christopher Currens resolved LUCENENET-477.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: Lucene.Net 3.0.3

Thanks for the patch.  It's been applied to trunk for version 3.0.3.
                
> 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
>             Fix For: Lucene.Net 3.0.3
>
>         Attachments: CloseableThreadLocal.cs.patch
>
>
> 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

        

Reply via email to