commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [math] Document NPE.
Date Tue, 19 May 2015 11:45:24 GMT
Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X 777273e23 -> cbea4e6aa


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/cbea4e6a
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/cbea4e6a
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/cbea4e6a

Branch: refs/heads/MATH_3_X
Commit: cbea4e6aad25977de5dcb49ea15da4f619843150
Parents: 777273e
Author: Luc Maisonobe <luc@apache.org>
Authored: Tue May 19 13:40:22 2015 +0200
Committer: Luc Maisonobe <luc@apache.org>
Committed: Tue May 19 13:44:52 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/math3/ode/AbstractIntegrator.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/cbea4e6a/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java b/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java
index fd170c1..0e690be 100644
--- a/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java
+++ b/src/main/java/org/apache/commons/math3/ode/AbstractIntegrator.java
@@ -278,9 +278,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);
     }


Mime
View raw message