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

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

    public hx(ox oxVar, ww wwVar, cw cwVar) {
        this.f12273a = wwVar;
        Objects.requireNonNull(oxVar);
    }

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

    @Nullable
    public final 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.f12273a.a("Adapter returned null.");
            return null;
        } catch (RemoteException unused) {
            return null;
        }
    }
}
