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.

Looks good!

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

Marked as reviewed by hannesw (Reviewer).

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

Reply via email to