Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 306dc139 authored by Greg Kaiser's avatar Greg Kaiser Committed by android-build-merger
Browse files

ContextHubService: Avoid null pointer dereference am: ca9c6760

am: 4bb1af67

Change-Id: I13b7527ed40619c40f807a7dd328624e63f4a707
parents 5cdfafb6 4bb1af67
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
        }