Repository: commons-math Updated Branches: refs/heads/master c44bfe000 -> 441687e5a
Document NPE. JIRA: MATH-1116 JIRA: MATH-1224 Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/441687e5 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/441687e5 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/441687e5 Branch: refs/heads/master Commit: 441687e5a4ac22d7a370cb3e99c6af91138c2746 Parents: c44bfe0 Author: Luc Maisonobe <l...@apache.org> Authored: Tue May 19 13:38:30 2015 +0200 Committer: Luc Maisonobe <l...@apache.org> Committed: Tue May 19 13:46:09 2015 +0200 ---------------------------------------------------------------------- .../java/org/apache/commons/math4/ode/AbstractIntegrator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/441687e5/src/main/java/org/apache/commons/math4/ode/AbstractIntegrator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/ode/AbstractIntegrator.java b/src/main/java/org/apache/commons/math4/ode/AbstractIntegrator.java index b9127ad..e9326d9 100644 --- a/src/main/java/org/apache/commons/math4/ode/AbstractIntegrator.java +++ b/src/main/java/org/apache/commons/math4/ode/AbstractIntegrator.java @@ -292,9 +292,12 @@ public abstract class AbstractIntegrator implements FirstOrderIntegrator { * @param yDot placeholder array where to put the time derivative of the state vector * @exception MaxCountExceededException if the number of functions evaluations is exceeded * @exception DimensionMismatchException if arrays dimensions do not match equations settings + * @exception NullPointerException if the ODE equations have not been set (i.e. if this method + * is called outside of a call to {@link #integrate(ExpandableStatefulODE, double)} or {@link + * #integrate(FirstOrderDifferentialEquations, double, double[], double, double[])}) */ public void computeDerivatives(final double t, final double[] y, final double[] yDot) - throws MaxCountExceededException, DimensionMismatchException { + throws MaxCountExceededException, DimensionMismatchException, NullPointerException { evaluations.incrementCount(); expandable.computeDerivatives(t, y, yDot); }