[jdk17] RFR: JDK-8264843: Javac crashes with NullPointerException when finding unencoded XML in <pre> tag

Hannes Wallnöfer hannesw at openjdk.java.net
Thu Jun 17 09:55:14 UTC 2021


On Wed, 16 Jun 2021 23:29:38 GMT, Jonathan Gibbons <jjg at 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


More information about the javadoc-dev mailing list