ContextHubService: Avoid null pointer dereference
am: ca9c676099
Change-Id: I4350cbc3c232e356ea97ff4be8ab4667516a309d
This commit is contained in:
@@ -1157,7 +1157,8 @@ static jint nativeSendMessage(JNIEnv *env, jobject instance, jintArray header_,
|
||||
if (retVal != 0) {
|
||||
ALOGD("Send Message failure - %d", retVal);
|
||||
if (msgType == CONTEXT_HUB_LOAD_APP) {
|
||||
closeLoadTxn(false, nullptr);
|
||||
jint ignored;
|
||||
closeLoadTxn(false, &ignored);
|
||||
} else if (msgType == CONTEXT_HUB_UNLOAD_APP) {
|
||||
closeUnloadTxn(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user