OSDN Git Service

Fix redial JNI crash
authorDavid Stevens <stevensd@google.com>
Wed, 15 Apr 2015 19:05:14 +0000 (12:05 -0700)
committerDavid Stevens <stevensd@google.com>
Tue, 28 Apr 2015 20:55:59 +0000 (13:55 -0700)
commit613dd4fd5a4df6c48beba475776407e7fa83b706
tree3d53a878e97dddabc74b2541d8214663068d7c26
parentcd152eb16444369d9fbdb642fbb8560fed96b83a
Fix redial JNI crash

Redial is implemented as dial(null). On eng builds, passing null into
dial triggers a fatal assert. Add null checks to prevent the crash.

Change-Id: Ieb168a79647ef7d56a7c81e058f7269ed20c22b1
jni/com_android_bluetooth_hfpclient.cpp