The current implementation is unnecessary expensive - we create a local reference frame for creating new Java objects and then create a new local reference. It's cheaper to just do jni->IsSameObject(obj, nullptr). R=perkj@webrtc.org Review URL: https://codereview.webrtc.org/1741723002 . Cr-Commit-Position: refs/heads/master@{#11825}