On Fri, 6 Jan 2023 13:11:41 GMT, Kevin Walls <kev...@openjdk.org> wrote:
> Exceptions during setup of these tests could leave e.g. JMXConnector cs as > null. > But, we call cs.close() during a finally block and fail with an NPE, > obscuring the real failure. > We must only call close if this is not null. This pull request has now been integrated. Changeset: 04f30185 Author: Kevin Walls <kev...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/04f30185e914c10c918d0eff1fb63fd96e1139fb Stats: 18 lines in 2 files changed: 9 ins; 0 del; 9 mod 8299739: HashedPasswordFileTest.java and ExceptionTest.java can fail with java.lang.NullPointerException Reviewed-by: sspitsyn, amenkov, cjplummer ------------- PR: https://git.openjdk.org/jdk/pull/11881