package com.google.android.gms.internal.ads;

import android.os.RemoteException;
import androidx.annotation.Nullable;
import java.util.Objects;

/* JADX INFO: loaded from: classes2.dex */
public final class jx implements s7.d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ yw f13029a;

    public jx(ox oxVar, yw ywVar, cw cwVar) {
        this.f13029a = ywVar;
        Objects.requireNonNull(oxVar);
    }

    @Override // s7.d
    public final void b(g7.a aVar) {
        try {
            this.f13029a.b(aVar.a());
        } catch (RemoteException unused) {
        }
    }

    @Nullable
    public final /* bridge */ /* synthetic */ Object onSuccess(Object obj) {
        com.google.android.gms.measurement.internal.u1.x(obj);
        q7.j.d("Adapter incorrectly returned a null ad. The onFailure() callback should be called if an adapter fails to load an ad.");
        try {
            this.f13029a.a("Adapter returned null.");
            return null;
        } catch (RemoteException unused) {
            return null;
        }
    }
}
