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

Commit a92470c7 authored by Michael Chan's avatar Michael Chan Committed by Henry Fang
Browse files

DO NOT MERGE ANYWHERE: Do nullptr check on source filter

Bug: 189129262
Change-Id: I57bcddb276f1f56d6523499bade6abc6fc7e7732
Merged-In: Id7e89a17480884b5faa63e755b98faf0b9e91365
parent f7c0f3c6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3094,7 +3094,7 @@ static jint android_media_tv_Tuner_set_filter_data_source(
        r = iFilterSp->setDataSource(NULL);
    } else {
        sp<IFilter> srcSp = getFilter(env, srcFilter)->getIFilter();
        if (iFilterSp == NULL) {
        if (srcSp == NULL) {
            ALOGD("Failed to set filter data source: src filter not found");
            return (jint) Result::INVALID_ARGUMENT;
        }