| Index: webrtc/api/java/jni/jni_helpers.cc
|
| diff --git a/webrtc/api/java/jni/jni_helpers.cc b/webrtc/api/java/jni/jni_helpers.cc
|
| index cd150142a13d0772b3040d0bde7509a5f8976a23..32092e65f8b7e8a2c94cb69b393ccc5f4f2ebb2e 100644
|
| --- a/webrtc/api/java/jni/jni_helpers.cc
|
| +++ b/webrtc/api/java/jni/jni_helpers.cc
|
| @@ -202,11 +202,8 @@ bool GetBooleanField(JNIEnv* jni, jobject object, jfieldID id) {
|
| return b;
|
| }
|
|
|
| -// Java references to "null" can only be distinguished as such in C++ by
|
| -// creating a local reference, so this helper wraps that logic.
|
| bool IsNull(JNIEnv* jni, jobject obj) {
|
| - ScopedLocalRefFrame local_ref_frame(jni);
|
| - return jni->NewLocalRef(obj) == NULL;
|
| + return jni->IsSameObject(obj, nullptr);
|
| }
|
|
|
| // Given a UTF-8 encoded |native| string return a new (UTF-16) jstring.
|
|
|