OSDN Git Service

audio: Fix NULL check
authorGreg Kaiser <gkaiser@google.com>
Tue, 29 Jan 2019 14:37:11 +0000 (06:37 -0800)
committerGreg Kaiser <gkaiser@google.com>
Tue, 29 Jan 2019 14:37:11 +0000 (06:37 -0800)
commit2df731cf3666c0507f4a908650c061f70b4d376e
tree9fcf37de7dc6de8e82c81dc2cefed447495ee553
parent66a23d050451e2548fa73f31f274ff59bc5c2fcb
audio: Fix NULL check

We already know jAudioAttributeArray is non-NULL (or else we'd
crash when dereferencing it).  We really want to check if the
contents of jAudioAttributeArray is NULL or not, so we fix this
check.

Test: TreeHugger
Change-Id: I956d99fe608f5e1b9cd0bc3e7c4075e343a6b5ab
core/jni/android_media_AudioAttributes.cpp