String c1 = "";
String c2 = "";
int size = chromosome1.getLength();</BUG>
for (int i = 0; i < size; i++) {
if(Math.random() <= 0.5){
<BUG>c1 = chromosome1.getGene(i).toString();

c2 = chromosome2.getGene(i).toString();
</BUG>
}

import java.util.List;
public class UniformCrossover implements ICrossover<IChromosome>{
public UniformCrossover() {}
@Override
public List<IChromosome> Compute(IChromosome chromosome1, IChromosome chromosome2) {
List<Object> c1 = new ArrayList<Object>(chromosome1.getLength());
List<Object> c2 = new ArrayList<Object>(chromosome1.getLength());
int size = chromosome1.getLength();
for (int i = 0; i < size; i++) {
if(Math.random() <= 0.5){
c1.add(chromosome1.getGene(i));
c2.add(chromosome2.getGene(i));
}
