SOLR-1001 followup -- Fix NPE due to bug in test base class

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@741469 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-02-06 08:38:07 +00:00
parent aa6bc4b770
commit 604267e448
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ public abstract class AbstractDataImportHandlerTest extends
VariableResolverImpl resolver, DataSource parentDataSource,
int currProcess, final List<Map<String, String>> entityFields,
final Map<String, String> entityAttrs) {
if (resolver == null) resolver = new VariableResolverImpl();
final Context delegate = new ContextImpl(parentEntity, resolver,
parentDataSource, currProcess,
new HashMap<String, Object>(), null, null);