Merge "android_media_MediaSync: Do not pass NULL to AString ctor." into nyc-dev
am: c4e8471ba4
* commit 'c4e8471ba4afb0d2cae0d9e29f5c14b4bbfe4524':
android_media_MediaSync: Do not pass NULL to AString ctor.
Change-Id: I1b883f4fe46ebb150841f5a75517a8340597edba
This commit is contained in:
@@ -159,7 +159,7 @@ static void throwExceptionAsNecessary(
|
|||||||
if (err > 0) {
|
if (err > 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
AString msgWithErrorCode(msg);
|
AString msgWithErrorCode(msg == NULL ? "" : msg);
|
||||||
msgWithErrorCode.append(" error:");
|
msgWithErrorCode.append(" error:");
|
||||||
msgWithErrorCode.append(err);
|
msgWithErrorCode.append(err);
|
||||||
jniThrowException(env, "java/lang/IllegalStateException", msgWithErrorCode.c_str());
|
jniThrowException(env, "java/lang/IllegalStateException", msgWithErrorCode.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user