lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Currens (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LUCENENET-477) NullReferenceException in ThreadLocal when Lucene.Net compiled for .Net 2.0
Date Thu, 22 Mar 2012 16:36:22 GMT

     [ 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

        

Mime
View raw message