Binder: Update to new ScopedLocalRef
Follow-up to commit625e0007acand commit fac8cb2405999d18aefd75387a5bbdb0c6160e7f. (cherry picked from commit8571ec370d) Bug: 64689630 Test: m Merged-In: I119cf83a5a54c15973ed3701ee448a9590bb404d Change-Id: I119cf83a5a54c15973ed3701ee448a9590bb404d
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user