Skip to content

Commit

Permalink
Improve string getter of scheduleFreespeedModes
Browse files Browse the repository at this point in the history
  • Loading branch information
marecabo authored and polettif committed Aug 3, 2021
1 parent 7b48783 commit 52e20e3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ public void setMaxTravelCostFactor(double maxTravelCostFactor) {
*/
@StringGetter(SCHEDULE_FREESPEED_MODES)
public String getScheduleFreespeedModesStr() {
return String.join(",", this.scheduleFreespeedModes);
if(this.scheduleFreespeedModes == null) {
return "";
} else {
return CollectionUtils.setToString(this.scheduleFreespeedModes);
}
}

@StringSetter(SCHEDULE_FREESPEED_MODES)
Expand Down

0 comments on commit 52e20e3

Please sign in to comment.