Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 96447 invoked from network); 6 Jan 2011 19:51:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 19:51:07 -0000 Received: (qmail 46312 invoked by uid 500); 6 Jan 2011 19:51:07 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 46236 invoked by uid 500); 6 Jan 2011 19:51:07 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 46174 invoked by uid 99); 6 Jan 2011 19:51:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 19:51:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 19:51:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06JokLe027472 for ; Thu, 6 Jan 2011 19:50:46 GMT Message-ID: <24727990.195881294343446470.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 14:50:46 -0500 (EST) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-466) BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1 In-Reply-To: <19678768.189041294324486220.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978473#action_12978473 ] Luc Maisonobe commented on MATH-466: ------------------------------------ Yes, the javadoc should be changed and the number of starts should be checked with an error triggered if it is not at least 1. > BaseMultiStartMultivariateRealOptimizer.optimize() can generate NPE if starts < 1 > --------------------------------------------------------------------------------- > > Key: MATH-466 > URL: https://issues.apache.org/jira/browse/MATH-466 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.0 > Reporter: Sebb > > The Javadoc for BaseMultiStartMultivariateRealOptimizer says that starts can be <= 1; however if it is set to 0, then the optimize() method will try to throw a null exception. > Perhaps starts should be constrained to be at least 1? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.