check for array size

This commit is contained in:
Milos Kozak 2017-07-11 11:27:14 +02:00
parent e33d757975
commit 3e9734188b

View file

@ -156,6 +156,10 @@ public class SensitivityWeightedAveragePlugin implements PluginBase, Sensitivity
index++; index++;
} }
if (data.size() == 0) {
return new AutosensResult();
}
double weightedsum = 0; double weightedsum = 0;
double weights = 0; double weights = 0;