lucenenet-dev mailing list archives

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

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

Andrew Sampson updated LUCENENET-477:
-------------------------------------

    Attachment: CloseableThreadLocal.cs.patch

fixes nullReferenceException in ThreadLocal class under .net 2
                
> 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
>         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