check for array size
This commit is contained in:
parent
e33d757975
commit
3e9734188b
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue