You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sasun Pundev (JIRA)" <ji...@apache.org> on 2010/05/03 17:48:56 UTC

[jira] Created: (MATH-369) BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double initial) throws NullPointerException

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.


[jira] Resolved: (MATH-369) BisectionSolver.solve(final UnivariateRealFunction f, double min, double max, double initial) throws NullPointerException

Posted by "Luc Maisonobe (JIRA)" <ji...@apache.org>.
     [ 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.