Binder: Update to new ScopedLocalRef

Follow-up to commit 625e0007ac and
commit fac8cb2405999d18aefd75387a5bbdb0c6160e7f.

(cherry picked from commit 8571ec370d)

Bug: 64689630
Test: m
Merged-In: I119cf83a5a54c15973ed3701ee448a9590bb404d
Change-Id: I119cf83a5a54c15973ed3701ee448a9590bb404d
This commit is contained in:
Andreas Gampe
2017-09-21 10:55:59 -07:00
parent 2b1494fc0a
commit 3d5811d3ce

View File

@@ -238,7 +238,7 @@ static void report_exception(JNIEnv* env, jthrowable excep, const char* msg)
env->ExceptionClear();
ScopedLocalRef<jstring> tagstr(env, env->NewStringUTF(LOG_TAG));
ScopedLocalRef<jstring> msgstr;
ScopedLocalRef<jstring> msgstr(env);
if (tagstr != nullptr) {
msgstr.reset(env->NewStringUTF(msg));
}