40 lines
1.2 KiB
Java
40 lines
1.2 KiB
Java
package c.i.a.f.n;
|
|
|
|
import com.google.android.gms.tasks.RuntimeExecutionException;
|
|
import com.google.android.gms.tasks.Task;
|
|
import java.util.concurrent.Executor;
|
|
/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */
|
|
public final class n implements Runnable {
|
|
public final /* synthetic */ Task i;
|
|
public final /* synthetic */ l j;
|
|
|
|
public n(l lVar, Task task) {
|
|
this.j = lVar;
|
|
this.i = task;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
try {
|
|
Task task = (Task) this.j.b.a(this.i);
|
|
if (task == null) {
|
|
l lVar = this.j;
|
|
lVar.f1223c.s(new NullPointerException("Continuation returned null"));
|
|
return;
|
|
}
|
|
Executor executor = g.b;
|
|
task.g(executor, this.j);
|
|
task.e(executor, this.j);
|
|
task.a(executor, this.j);
|
|
} catch (RuntimeExecutionException e) {
|
|
if (e.getCause() instanceof Exception) {
|
|
this.j.f1223c.s((Exception) e.getCause());
|
|
} else {
|
|
this.j.f1223c.s(e);
|
|
}
|
|
} catch (Exception e2) {
|
|
this.j.f1223c.s(e2);
|
|
}
|
|
}
|
|
}
|