Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
added a check for configuration data to be there when parsing JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
gavalian committed Feb 2, 2018
1 parent 89a01d6 commit 79ee81a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 79ee81a

Please sign in to comment.