check for array size
This commit is contained in:
parent
e33d757975
commit
3e9734188b
|
@ -156,6 +156,10 @@ public class SensitivityWeightedAveragePlugin implements PluginBase, Sensitivity
|
|||
index++;
|
||||
}
|
||||
|
||||
if (data.size() == 0) {
|
||||
return new AutosensResult();
|
||||
}
|
||||
|
||||
double weightedsum = 0;
|
||||
double weights = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue