lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Wesemann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-2544) ThreadedContext throws NPE on getResolvedEntityAttribute()
Date Wed, 25 May 2011 13:38:47 GMT
ThreadedContext throws NPE on getResolvedEntityAttribute()
----------------------------------------------------------

                 Key: SOLR-2544
                 URL: https://issues.apache.org/jira/browse/SOLR-2544
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 3.1
         Environment: all
            Reporter: Frank Wesemann


ThreadedContext.getResolvedEntityAttribute() throws a NPE as it calls
super.getResolvedEntityAttribute() which in turn calls its private member resolver, which
is not set on a ThreadedContext.

ContextImpl.getResolvedEntityAttribute() should call getVariableResover().replaceTokens(entity.allFields.get(name
)).

a testcase for this particular issue may be:

assertEquals( context.getResolvedEntityAttribute(attrName), context.getVariableResolver().replaceTokens(entity.allFields.get(name
))



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message