[MATH-1149] Fix potential null pointer dereferencing.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1624752 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78432c9755
commit
2bc9e7ea86
|
@ -73,6 +73,10 @@ Users are encouraged to upgrade to this version as this release not
|
|||
2. A few methods in the FastMath class are in fact slower that their
|
||||
counterpart in either Math or StrictMath (cf. MATH-740 and MATH-901).
|
||||
">
|
||||
<action dev="tn" type="fix" issue="MATH-1149" due-to="M Kim">
|
||||
Fixed potential null pointer dereferencing in constructor of
|
||||
"DummyStepInterpolator(DummyStepInterpolator)".
|
||||
</action>
|
||||
<action dev="psteitz" type="fix" issue="MATH-1136" due-to="Aleksei Dievskii">
|
||||
Fixed BinomialDistribution to deal with degenerate cases correctly.
|
||||
</action>
|
||||
|
|
|
@ -80,7 +80,9 @@ public class DummyStepInterpolator
|
|||
*/
|
||||
public DummyStepInterpolator(final DummyStepInterpolator interpolator) {
|
||||
super(interpolator);
|
||||
currentDerivative = interpolator.currentDerivative.clone();
|
||||
if (interpolator.currentDerivative != null) {
|
||||
currentDerivative = interpolator.currentDerivative.clone();
|
||||
}
|
||||
}
|
||||
|
||||
/** Really copy the finalized instance.
|
||||
|
|
Loading…
Reference in New Issue