On Fri, 4 Jun 2021 14:10:20 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

>> Hello, please review this small Sonar finding.
>> Sonar reports a potential NULL pointer dereference here :
>> https://sonarcloud.io/project/issues?id=shipilev_jdk&languages=c&open=AXck8CPLBBG2CXpcnh_z&resolved=false&severities=MAJOR&types=BUG
>> "Access to field 'item' results in a dereference of a null pointer (loaded 
>> from variable 'new')"
>> It would be better to add a check .
>
> Matthias Baesken has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Replace check by assertion

The change looks good to me.

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

Marked as reviewed by rschmelter (Committer).

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

Reply via email to