Commit 0fce4866 authored by patrick.lambert's avatar patrick.lambert
Browse files

bug fixed when string is empty

parent 7b2618d9
......@@ -20,7 +20,7 @@ public abstract class BasinNetwork extends Environment<Basin, DiadromousFish> {
*
* @unit
*/
protected String simulationName = "";
protected String simulationName = "default";
protected transient double[][] distanceGrid;
......@@ -99,7 +99,7 @@ public abstract class BasinNetwork extends Environment<Basin, DiadromousFish> {
*/
public String getSimulationId() {
String id = "_";
if (!simulationName.equalsIgnoreCase(""))
if (simulationName.isEmpty() | simulationName.isBlank())
id = id.concat(simulationName).concat("-");
id = id.concat(Integer.toString(getPilot().getParameters().getRngStatusIndex())).concat("-")
.concat(getTemperatureCatchmentFile());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment