Project

General

Profile

« Previous | Next » 

Revision 37278

fixed bug in case the basePath is not setted

View differences:

modules/dnet-msro-service/trunk/src/main/java/eu/dnetlib/msro/workflows/nodes/repohi/CreateObjectStoreJobNode.java
2 2

  
3 3
import java.util.Map;
4 4

  
5
import org.apache.commons.lang.StringUtils;
5 6
import org.apache.commons.logging.Log;
6 7
import org.apache.commons.logging.LogFactory;
7 8

  
......
32 33
		String basePath  = token.getEnv().getAttribute("objectStoreBasePath");
33 34
		job.setAction("CREATE");
34 35
		job.getParameters().put("interpretation", interpretation);
35
		job.getParameters().put("basePath", basePath);
36
		if (!StringUtils.isEmpty(basePath)) {
37
			job.getParameters().put("basePath", basePath);
38
		}
36 39
	}
37 40

  
38 41
	public String getInterpretation() {

Also available in: Unified diff