diff --git a/common-tools/clas-reco/src/main/java/org/jlab/clas/reco/ReconstructionEngine.java b/common-tools/clas-reco/src/main/java/org/jlab/clas/reco/ReconstructionEngine.java index 8898e09628..8fd502df2c 100644 --- a/common-tools/clas-reco/src/main/java/org/jlab/clas/reco/ReconstructionEngine.java +++ b/common-tools/clas-reco/src/main/java/org/jlab/clas/reco/ReconstructionEngine.java @@ -106,8 +106,10 @@ public EngineData configure(EngineData ed) { System.out.println("----> I am doing nothing"); try { - String variation = this.getStringConfigParameter(engineConfiguration, "services", "variation"); - this.setVariation(variation); + if(engineConfiguration.length()>2){ + String variation = this.getStringConfigParameter(engineConfiguration, "services", "variation"); + this.setVariation(variation); + } } catch (Exception e){ System.out.println("[Engine] " + getName() + " failet to set variation"); }