lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-1431) NullPointerException in CloseableThreadLocal#get() if CTL is closed
Date Mon, 03 Nov 2008 10:20:46 GMT

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

Michael McCandless resolved LUCENE-1431.
----------------------------------------

       Resolution: Invalid
    Lucene Fields: [New, Patch Available]  (was: [Patch Available, New])

OK thanks!

> NullPointerException in CloseableThreadLocal#get() if CTL is closed
> -------------------------------------------------------------------
>
>                 Key: LUCENE-1431
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1431
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.4
>         Environment: Linux Fedora 9, amd64, Sun JDK 1.6.0_03 amd64
>            Reporter: Andreas Kohn
>         Attachments: LUCENE-1431.diff
>
>
> Pretty simple NPE, happening because some thread closed the CloseableThreadLocal, but
another place still wanted to look at it:
> {noformat}
>  java.lang.NullPointerException
>      at org.apache.lucene.util.CloseableThreadLocal.get(Unknown Source)
>      at org.apache.lucene.index.TermInfosReader.getThreadResources(Unknown Source)
>      at org.apache.lucene.index.TermInfosReader.get(Unknown Source)
>      at org.apache.lucene.index.TermInfosReader.get(Unknown Source)
>      at org.apache.lucene.index.SegmentTermDocs.seek(Unknown Source)
>      at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.termDocs(Unknown Source)
>      at org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(Unknown Source)
> {noformat}
> I believe the attached patch should fix those.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message