[ https://issues.apache.org/jira/browse/SOLR-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shalin Shekhar Mangar resolved SOLR-2544. ----------------------------------------- Resolution: Duplicate Duplicate of 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 > Attachments: SOLR-2544.patch, ThreadedContextTest.java > > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org