HttpUtils$SSLSessionNPEFixInterceptor.smali

.class public final Lsg/bigo/sdk/blivestat/sender/http/HttpUtils$SSLSessionNPEFixInterceptor;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lokhttp3/u;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lsg/bigo/sdk/blivestat/sender/http/HttpUtils;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "SSLSessionNPEFixInterceptor"
.end annotation


# instance fields
.field final synthetic this$0:Lsg/bigo/sdk/blivestat/sender/http/HttpUtils;


# direct methods
.method public constructor <init>(Lsg/bigo/sdk/blivestat/sender/http/HttpUtils;)V
    .registers 2

    .line 259
    iput-object p1, p0, Lsg/bigo/sdk/blivestat/sender/http/HttpUtils$SSLSessionNPEFixInterceptor;->this$0:Lsg/bigo/sdk/blivestat/sender/http/HttpUtils;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final intercept(Lokhttp3/u$a;)Lokhttp3/ad;
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 263
    :try_start_0
    invoke-interface {p1}, Lokhttp3/u$a;->request()Lokhttp3/aa;

    move-result-object v0

    invoke-interface {p1, v0}, Lokhttp3/u$a;->proceed(Lokhttp3/aa;)Lokhttp3/ad;

    move-result-object p1
    :try_end_8
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_8} :catch_14
    .catchall {:try_start_0 .. :try_end_8} :catchall_9

    return-object p1

    :catchall_9
    move-exception p1

    .line 276
    new-instance v0, Ljava/io/IOException;

    invoke-virtual {p1}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_14
    move-exception p1

    .line 265
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "SSLSessionNPEFixInterceptor intercept exception:"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/lang/NullPointerException;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "BLiveStatisSDK"

    invoke-static {v1, v0}, Lsg/bigo/sdk/blivestat/log/CoreStatLog;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 266
    invoke-virtual {p1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;

    move-result-object v0

    .line 268
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_48

    .line 269
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    const-string v2, "ssl_session.*null"

    invoke-virtual {v1, v2}, Ljava/lang/String;->matches(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_48

    .line 270
    new-instance p1, Ljava/io/IOException;

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 272
    :cond_48
    new-instance v0, Ljava/io/IOException;

    invoke-virtual {p1}, Ljava/lang/NullPointerException;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v0
.end method