Integrated: 7903151: NPE when resolving @library from jtreg plugin
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Thu Apr 28 20:46:06 UTC 2022
On Fri, 8 Apr 2022 14:25:21 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch fixes a trivial NPE which occurs when the plugin is attempting to resolve an absolute library in a `@library` tag. If no library is found starting from TEST.ROOT, and if TEST.ROOT does not specify any alternate library root, the plugin fails with a NPE, as the code is eagerly trimming the property value "external.lib.roots", which might not exist.
>
> The solution is simple, e.g. check for null before trimming.
This pull request has now been integrated.
Changeset: bc75e5f4
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.java.net/jtreg/commit/bc75e5f4bec2160bf850dd30597cb4e0016ab5f5
Stats: 7 lines in 4 files changed: 2 ins; 0 del; 5 mod
7903151: NPE when resolving @library from jtreg plugin
Reviewed-by: djelinski, jjg
-------------
PR: https://git.openjdk.java.net/jtreg/pull/70
More information about the jtreg-dev
mailing list