GitHub user jglick opened a pull request:
https://github.com/apache/maven/pull/8
[MNG-5075] MavenProject.getParent throws undocumented ISE
Fix for [MNG-5075](http://jira.codehaus.org/browse/MNG-5075):
`MavenProject.getParent` throws `IllegalStateException` when there is a model
building error. Patch (updated version of JIRA original) just sends any
problems to the logger and returns `null`, which is not great but is at least
now documented and will prevent innocent clients from being fatally broken by
an unchecked exception.
I am `[email protected]` and intend this patch to be submitted to the ASF
under the ASL 2.0.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jglick/maven MavenProject-getParent-MNG-5075
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven/pull/8.patch
----
commit a46507975719751d306eb9d90efe6c00030b94a6
Author: Jesse Glick <[email protected]>
Date: 2013-04-29T15:55:46Z
[MNG-5075] MavenProject.getParent throws undocumented ISE
----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]