fix restoring prop in test

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/newtrunk@926083 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2010-03-22 13:52:00 +00:00
parent c5a9eded5c
commit 386d3eabbc
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ public class DistributedSpellCheckComponentTest extends BaseDistributedSearchTes
@Override @Override
public void tearDown() throws Exception { public void tearDown() throws Exception {
super.tearDown(); super.tearDown();
System.setProperty("solr.directoryFactory", saveProp); if(saveProp != null) {
System.setProperty("solr.directoryFactory", saveProp);
}
} }
@Override @Override