commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (MATH-369) BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double initial) throws NullPointerException
Date Mon, 03 May 2010 18:45:57 GMT

     [ https://issues.apache.org/jira/browse/MATH-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luc Maisonobe resolved MATH-369.
--------------------------------

    Resolution: Fixed

Fixed in subversion repository as of r940565.
Thanks for the report and for the fix.

> BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double
initial) throws NullPointerException
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-369
>                 URL: https://issues.apache.org/jira/browse/MATH-369
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Windows XP Profesional
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
> Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
>            Reporter: Sasun Pundev
>            Priority: Minor
>
> Method 
>     BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double
initial)  
> invokes 
>     BisectionSolver.solve(double min, double max) 
> which throws NullPointerException, as member variable
>     UnivariateRealSolverImpl.f 
> is null.
> Instead the method:
>     BisectionSolver.solve(final UnivariateRealFunction f, double min, double max)
> should be called.
> Steps to reproduce:
> invoke:
>      new BisectionSolver().solve(someUnivariateFunctionImpl, 0.0, 1.0, 0.5);
> NullPointerException will be thrown.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message