package p138.p176.p177.p242.p270;

import com.google.android.gms.tasks.RuntimeExecutionException;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.އ.ތ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class RunnableC5071 implements Runnable {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final /* synthetic */ AbstractC5062 f15227;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final /* synthetic */ C5070 f15228;

    public RunnableC5071(C5070 c5070, AbstractC5062 abstractC5062) {
        this.f15228 = c5070;
        this.f15227 = abstractC5062;
    }

    /* JADX WARN: Type inference incomplete: some casts might be missing */
    @Override // java.lang.Runnable
    public final void run() {
        try {
            AbstractC5062 abstractC5062 = (AbstractC5062) this.f15228.f15225.mo8537((AbstractC5062<TResult>) this.f15227);
            if (abstractC5062 == null) {
                C5070 c5070 = this.f15228;
                c5070.f15226.m8561(new NullPointerException("Continuation returned null"));
            } else {
                abstractC5062.mo8549(C5064.f15216, (InterfaceC5060) this.f15228);
                abstractC5062.mo8548(C5064.f15216, (InterfaceC5059) this.f15228);
                abstractC5062.mo8546(C5064.f15216, (InterfaceC5057) this.f15228);
            }
        } catch (RuntimeExecutionException e) {
            if (e.getCause() instanceof Exception) {
                this.f15228.f15226.m8561((Exception) e.getCause());
            } else {
                this.f15228.f15226.m8561(e);
            }
        } catch (Exception e2) {
            this.f15228.f15226.m8561(e2);
        }
    }
}
