RFR: 8277932: Subject:callAs() not throwing NPE when action is null

Alan Bateman alanb at openjdk.java.net
Tue Dec 7 07:18:16 UTC 2021


On Mon, 6 Dec 2021 22:22:14 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> Add null check. I must have thought the NPE will be thrown anyway but the `catch Exception` block swallows it.
> 
> I added a noreg-trivial label. If you think differently can add one.

Is there a test for this? (I see noreg-trivial is added but a test should be easy to add).

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

PR: https://git.openjdk.java.net/jdk/pull/6728


More information about the security-dev mailing list