Merge "Fix nullptr check"
This commit is contained in:
committed by
Android (Google) Code Review
commit
01d00e3ea0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user