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 nx implements s7.d {

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

    public nx(ox oxVar, cx cxVar, cw cwVar) {
        this.f14755a = cxVar;
        Objects.requireNonNull(oxVar);
    }

    @Override // s7.d
    public final void b(g7.a aVar) {
        try {
            this.f14755a.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.f14755a.a("Adapter returned null.");
            return null;
        } catch (RemoteException unused) {
            return null;
        }
    }
}
