RFR: 8346094: Harden X509CertImpl.getExtensionValue for NPE cases [v4]

Konanki Sreenath duke at openjdk.org
Wed Feb 19 11:20:55 UTC 2025


On Tue, 18 Feb 2025 17:44:12 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> There is still one `if (info != null)` check in `getTBSCertificate()`.
> 
> Also, you can combine
> 
> ```
>         Objects.requireNonNull(info);
>         this.info = info;
> ```
> 
> to
> 
> ```
>         this.info = Objects.requireNonNull(info);
> ```

addressed @wangweij

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

PR Comment: https://git.openjdk.org/jdk/pull/23315#issuecomment-2668340588


More information about the security-dev mailing list