commit | ceec82759f378075ee6b9d33f6ddc07523361edb | [log] [tgz] |
---|---|---|
author | Arnav Gupta <championswimmer@gmail.com> | Wed Feb 10 05:57:49 2016 +0530 |
committer | Andre Eisenbach <eisenbach@google.com> | Thu Feb 18 10:56:01 2016 -0800 |
tree | 022fd340f0b784005005bffb20af1a9f3c6f7a67 | |
parent | 0787917a687e31cbd1a9d8af5eca6b684a3ef894 [diff] |
HFP: Do not return NULL when the HDP interface is unavailable We're not supposed to return a NULL from a a function returning an int value. And indeed the calling Java code does not have a NPE check either. If an HDP interface is not avaialable, send -1 which the Java code correctly assumes as a failure to register the health app. Change-Id: I5ac7dc6f9acc9fefae8d1d2233453448c3ba79bc Signed-off-by: Arnav Gupta <championswimmer@gmail.com>