From 604267e448b2e9e21a515cbccac4944d25bddd5f Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Fri, 6 Feb 2009 08:38:07 +0000 Subject: [PATCH] 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 --- .../solr/handler/dataimport/AbstractDataImportHandlerTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/AbstractDataImportHandlerTest.java b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/AbstractDataImportHandlerTest.java index 606e45df972..c7322f596f9 100644 --- a/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/AbstractDataImportHandlerTest.java +++ b/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/AbstractDataImportHandlerTest.java @@ -81,6 +81,7 @@ public abstract class AbstractDataImportHandlerTest extends VariableResolverImpl resolver, DataSource parentDataSource, int currProcess, final List> entityFields, final Map entityAttrs) { + if (resolver == null) resolver = new VariableResolverImpl(); final Context delegate = new ContextImpl(parentEntity, resolver, parentDataSource, currProcess, new HashMap(), null, null);