mirror of https://github.com/apache/poi.git
Added arg check to NumericFunction.singleOperandEvaluate().
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@893403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8221d39585
commit
152c76c2bf
|
@ -34,6 +34,9 @@ public abstract class NumericFunction implements Function {
|
|||
static final double LOG_10_TO_BASE_e = Math.log(TEN);
|
||||
|
||||
protected static final double singleOperandEvaluate(ValueEval arg, int srcRowIndex, int srcColumnIndex) throws EvaluationException {
|
||||
if (arg == null) {
|
||||
throw new IllegalArgumentException("arg must not be null");
|
||||
}
|
||||
ValueEval ve = OperandResolver.getSingleValue(arg, srcRowIndex, srcColumnIndex);
|
||||
double result = OperandResolver.coerceValueToDouble(ve);
|
||||
checkValue(result);
|
||||
|
|
Loading…
Reference in New Issue