e.smali
.class public final Lio/reactivex/observers/e;
.super Ljava/lang/Object;
.source "SafeObserver.java"
# interfaces
.implements Lio/reactivex/w;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/w<",
"TT;>;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# instance fields
.field final a:Lio/reactivex/w;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/w<",
"-TT;>;"
}
.end annotation
.end field
.field b:Lio/reactivex/disposables/b;
.field c:Z
# direct methods
.method public constructor <init>(Lio/reactivex/w;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
return-void
.end method
# virtual methods
.method a()V
.registers 7
.line 1
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "Subscription not set!"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x2
.line 2
:try_start_a
iget-object v4, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
sget-object v5, Lio/reactivex/internal/disposables/EmptyDisposable;->INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invoke-interface {v4, v5}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
:try_end_11
.catch Ljava/lang/Throwable; {:try_start_a .. :try_end_11} :catch_2a
.line 3
:try_start_11
iget-object v4, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v4, v0}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_16
.catch Ljava/lang/Throwable; {:try_start_11 .. :try_end_16} :catch_17
goto :goto_29
:catch_17
move-exception v4
.line 4
invoke-static {v4}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 5
new-instance v5, Lio/reactivex/exceptions/CompositeException;
new-array v3, v3, [Ljava/lang/Throwable;
aput-object v0, v3, v2
aput-object v4, v3, v1
invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v5}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_29
return-void
:catch_2a
move-exception v4
.line 6
invoke-static {v4}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 7
new-instance v5, Lio/reactivex/exceptions/CompositeException;
new-array v3, v3, [Ljava/lang/Throwable;
aput-object v0, v3, v2
aput-object v4, v3, v1
invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v5}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
return-void
.end method
.method b()V
.registers 7
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
.line 2
new-instance v1, Ljava/lang/NullPointerException;
const-string v2, "Subscription not set!"
invoke-direct {v1, v2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
const/4 v2, 0x0
const/4 v3, 0x2
.line 3
:try_start_c
iget-object v4, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
sget-object v5, Lio/reactivex/internal/disposables/EmptyDisposable;->INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invoke-interface {v4, v5}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
:try_end_13
.catch Ljava/lang/Throwable; {:try_start_c .. :try_end_13} :catch_2c
.line 4
:try_start_13
iget-object v4, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v4, v1}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_18
.catch Ljava/lang/Throwable; {:try_start_13 .. :try_end_18} :catch_19
goto :goto_2b
:catch_19
move-exception v4
.line 5
invoke-static {v4}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 6
new-instance v5, Lio/reactivex/exceptions/CompositeException;
new-array v3, v3, [Ljava/lang/Throwable;
aput-object v1, v3, v2
aput-object v4, v3, v0
invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v5}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_2b
return-void
:catch_2c
move-exception v4
.line 7
invoke-static {v4}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 8
new-instance v5, Lio/reactivex/exceptions/CompositeException;
new-array v3, v3, [Ljava/lang/Throwable;
aput-object v1, v3, v2
aput-object v4, v3, v0
invoke-direct {v5, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v5}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
return-void
.end method
.method public dispose()V
.registers 2
.line 1
iget-object v0, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 1
iget-object v0, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v0
return v0
.end method
.method public onComplete()V
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
if-eqz v0, :cond_5
return-void
:cond_5
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
.line 3
iget-object v0, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
if-nez v0, :cond_10
.line 4
invoke-virtual {p0}, Lio/reactivex/observers/e;->a()V
return-void
.line 5
:cond_10
:try_start_10
iget-object v0, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v0}, Lio/reactivex/w;->onComplete()V
:try_end_15
.catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_15} :catch_16
goto :goto_1d
:catch_16
move-exception v0
.line 6
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 7
invoke-static {v0}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_1d
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 10
.line 1
iget-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
if-eqz v0, :cond_8
.line 2
invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
return-void
:cond_8
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
.line 4
iget-object v1, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
const/4 v2, 0x0
const/4 v3, 0x2
if-nez v1, :cond_5b
.line 5
new-instance v1, Ljava/lang/NullPointerException;
const-string v4, "Subscription not set!"
invoke-direct {v1, v4}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
const/4 v4, 0x3
.line 6
:try_start_19
iget-object v5, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
sget-object v6, Lio/reactivex/internal/disposables/EmptyDisposable;->INSTANCE:Lio/reactivex/internal/disposables/EmptyDisposable;
invoke-interface {v5, v6}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
:try_end_20
.catch Ljava/lang/Throwable; {:try_start_19 .. :try_end_20} :catch_46
.line 7
:try_start_20
iget-object v5, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
new-instance v6, Lio/reactivex/exceptions/CompositeException;
new-array v7, v3, [Ljava/lang/Throwable;
aput-object p1, v7, v2
aput-object v1, v7, v0
invoke-direct {v6, v7}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-interface {v5, v6}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_30
.catch Ljava/lang/Throwable; {:try_start_20 .. :try_end_30} :catch_31
goto :goto_45
:catch_31
move-exception v5
.line 8
invoke-static {v5}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 9
new-instance v6, Lio/reactivex/exceptions/CompositeException;
new-array v4, v4, [Ljava/lang/Throwable;
aput-object p1, v4, v2
aput-object v1, v4, v0
aput-object v5, v4, v3
invoke-direct {v6, v4}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v6}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_45
return-void
:catch_46
move-exception v5
.line 10
invoke-static {v5}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 11
new-instance v6, Lio/reactivex/exceptions/CompositeException;
new-array v4, v4, [Ljava/lang/Throwable;
aput-object p1, v4, v2
aput-object v1, v4, v0
aput-object v5, v4, v3
invoke-direct {v6, v4}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v6}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
return-void
:cond_5b
if-nez p1, :cond_64
.line 12
new-instance p1, Ljava/lang/NullPointerException;
const-string v1, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p1, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
.line 13
:cond_64
:try_start_64
iget-object v1, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v1, p1}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:try_end_69
.catch Ljava/lang/Throwable; {:try_start_64 .. :try_end_69} :catch_6a
goto :goto_7c
:catch_6a
move-exception v1
.line 14
invoke-static {v1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 15
new-instance v4, Lio/reactivex/exceptions/CompositeException;
new-array v3, v3, [Ljava/lang/Throwable;
aput-object p1, v3, v2
aput-object v1, v3, v0
invoke-direct {v4, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v4}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_7c
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/observers/e;->c:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
iget-object v0, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
if-nez v0, :cond_d
.line 3
invoke-virtual {p0}, Lio/reactivex/observers/e;->b()V
return-void
:cond_d
const/4 v0, 0x1
const/4 v1, 0x0
const/4 v2, 0x2
if-nez p1, :cond_35
.line 4
new-instance p1, Ljava/lang/NullPointerException;
const-string v3, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p1, v3}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
.line 5
:try_start_19
iget-object v3, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
invoke-interface {v3}, Lio/reactivex/disposables/b;->dispose()V
:try_end_1e
.catch Ljava/lang/Throwable; {:try_start_19 .. :try_end_1e} :catch_22
.line 6
invoke-virtual {p0, p1}, Lio/reactivex/observers/e;->onError(Ljava/lang/Throwable;)V
return-void
:catch_22
move-exception v3
.line 7
invoke-static {v3}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 8
new-instance v4, Lio/reactivex/exceptions/CompositeException;
new-array v2, v2, [Ljava/lang/Throwable;
aput-object p1, v2, v1
aput-object v3, v2, v0
invoke-direct {v4, v2}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-virtual {p0, v4}, Lio/reactivex/observers/e;->onError(Ljava/lang/Throwable;)V
return-void
.line 9
:cond_35
:try_start_35
iget-object v3, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v3, p1}, Lio/reactivex/w;->onNext(Ljava/lang/Object;)V
:try_end_3a
.catch Ljava/lang/Throwable; {:try_start_35 .. :try_end_3a} :catch_3b
goto :goto_47
:catch_3b
move-exception p1
.line 10
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 11
:try_start_3f
iget-object v3, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
invoke-interface {v3}, Lio/reactivex/disposables/b;->dispose()V
:try_end_44
.catch Ljava/lang/Throwable; {:try_start_3f .. :try_end_44} :catch_48
.line 12
invoke-virtual {p0, p1}, Lio/reactivex/observers/e;->onError(Ljava/lang/Throwable;)V
:goto_47
return-void
:catch_48
move-exception v3
.line 13
invoke-static {v3}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 14
new-instance v4, Lio/reactivex/exceptions/CompositeException;
new-array v2, v2, [Ljava/lang/Throwable;
aput-object p1, v2, v1
aput-object v3, v2, v0
invoke-direct {v4, v2}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-virtual {p0, v4}, Lio/reactivex/observers/e;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onSubscribe(Lio/reactivex/disposables/b;)V
.registers 7
.line 1
iget-object v0, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->validate(Lio/reactivex/disposables/b;Lio/reactivex/disposables/b;)Z
move-result v0
if-eqz v0, :cond_32
.line 2
iput-object p1, p0, Lio/reactivex/observers/e;->b:Lio/reactivex/disposables/b;
.line 3
:try_start_a
iget-object v0, p0, Lio/reactivex/observers/e;->a:Lio/reactivex/w;
invoke-interface {v0, p0}, Lio/reactivex/w;->onSubscribe(Lio/reactivex/disposables/b;)V
:try_end_f
.catch Ljava/lang/Throwable; {:try_start_a .. :try_end_f} :catch_10
goto :goto_32
:catch_10
move-exception v0
.line 4
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
const/4 v1, 0x1
.line 5
iput-boolean v1, p0, Lio/reactivex/observers/e;->c:Z
.line 6
:try_start_17
invoke-interface {p1}, Lio/reactivex/disposables/b;->dispose()V
:try_end_1a
.catch Ljava/lang/Throwable; {:try_start_17 .. :try_end_1a} :catch_1e
.line 7
invoke-static {v0}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
goto :goto_32
:catch_1e
move-exception p1
.line 8
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 9
new-instance v2, Lio/reactivex/exceptions/CompositeException;
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Throwable;
const/4 v4, 0x0
aput-object v0, v3, v4
aput-object p1, v3, v1
invoke-direct {v2, v3}, Lio/reactivex/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
invoke-static {v2}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:cond_32
:goto_32
return-void
.end method