Skip to content
Snippets Groups Projects
Commit fbd44abe authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

bugfix: create empty parameters list for new algorithm instead of null reference

parent 554cf3ec
No related branches found
No related tags found
No related merge requests found
package eu.hbp.mip.model;
import java.util.LinkedList;
/**
* Created by mirco on 09.11.16.
*/
......@@ -8,13 +10,11 @@ public class Algorithm extends ExperimentValidator {
private boolean validation;
public Algorithm() {
}
public Algorithm(String code, String name, boolean validation) {
this.validation = validation;
setCode(code);
setName(name);
setParameters(new LinkedList<>());
}
public boolean isValidation() {
......
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