A NullPointerException is thrown, when one calls jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider::constantEquals(Constant x, Constant y) with the first argument x equal to null.
Additional check should be added for null as the first argument.
Additional check should be added for null as the first argument.