On Wed, 16 Jun 2021 23:29:38 GMT, Jonathan Gibbons <j...@openjdk.org> wrote:

> Please review a simple fix for an NPE in doclint, in JDK 17.
> 
> The NPE is caused by checking if an unknown tag is self-closing. The fix is 
> to move the check into the arm of the preceding `if` statement that ensures 
> that the tags is not null.   Effectively, we do not valid whether unknown 
> tags may be self-closing.
> 
> The potential for the NPE has been there a long time. The check that triggers 
> the NPE became more likely when we removed support for HTML4.

This pull request has now been integrated.

Changeset: 0011b52e
Author:    Jonathan Gibbons <j...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk17/commit/0011b52ee81d88b023f771432abc079c64266578
Stats:     32 lines in 3 files changed: 28 ins; 1 del; 3 mod

8264843: Javac crashes with NullPointerException when finding unencoded XML in 
<pre> tag

Reviewed-by: hannesw

-------------

PR: https://git.openjdk.java.net/jdk17/pull/86

Reply via email to