diff options
Diffstat (limited to 'app/src/main/java/com/wireguard')
-rw-r--r-- | app/src/main/java/com/wireguard/android/util/ErrorMessages.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ErrorMessages.java b/app/src/main/java/com/wireguard/android/util/ErrorMessages.java index ee9cb12a..7f926541 100644 --- a/app/src/main/java/com/wireguard/android/util/ErrorMessages.java +++ b/app/src/main/java/com/wireguard/android/util/ErrorMessages.java @@ -6,6 +6,8 @@ package com.wireguard.android.util; import android.content.res.Resources; +import android.os.RemoteException; + import androidx.annotation.Nullable; import com.wireguard.android.Application; @@ -123,7 +125,10 @@ public final class ErrorMessages { while (cause.getCause() != null) { if (cause instanceof BadConfigException) break; - cause = cause.getCause(); + final Throwable nextCause = cause.getCause(); + if (nextCause instanceof RemoteException) + break; + cause = nextCause; } return cause; } |