emopers opened a new pull request #103: The TreeBuilder constructor does not check the validity of the input String s URL: https://github.com/apache/commons-math/pull/103 The `TreeBuilder` constructor does not check whether the input string `s` is null before constructing a `StringTokenizer`. This will cause a `NullPointerException` to be thrown according to the [docs](https://docs.oracle.com/javase/7/docs/api/java/util/StringTokenizer.html#StringTokenizer(java.lang.String)). It also does not check whether `s` is empty. This will cause a NoSuchElementException to be thrown when nextToken() is called according to the [docs](https://docs.oracle.com/javase/7/docs/api/java/util/StringTokenizer.html#nextToken()). This pull request adds a check to the String `s` and throws a ParseException if `s` is null or empty. It also adds two tests.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org