Merge "Fix nullptr check"

This commit is contained in:
TreeHugger Robot
2022-01-28 18:48:47 +00:00
committed by Android (Google) Code Review

View File

@@ -1288,7 +1288,7 @@ static jint convertAudioProfileFromNative(JNIEnv *env, jobject *jAudioProfile,
audioFormatFromNative(nAudioProfile->format), jSamplingRates.get(),
jChannelMasks.get(), jChannelIndexMasks.get(), encapsulationType);
if (jAudioProfile == nullptr) {
if (*jAudioProfile == nullptr) {
return AUDIO_JAVA_ERROR;
}