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] [Commented] (SOLR-2544) ThreadedContext throws NPE on getResolvedEntityAttribute()
Date Wed, 25 May 2011 13:40:47 GMT

    [ https://issues.apache.org/jira/browse/SOLR-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039120#comment-13039120
] 

Frank Wesemann commented on SOLR-2544:
--------------------------------------

Is this related to SOLR-2186 ?

> 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