From bf538129c29a95ba3bed2c06247ab939bc38a624 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Mon, 23 Sep 2019 19:54:47 +0200 Subject: [PATCH] SASL: Add missing InterruptedException to "else if" cascade --- .../main/java/org/jivesoftware/smack/SASLAuthentication.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java index 2fe581b17..4bc2ec749 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java @@ -160,7 +160,8 @@ public final class SASLAuthentication { private boolean authenticationSuccessful; /** - * Either of type {@link SmackException} or {@link SASLErrorException} + * Either of type {@link SmackSaslException},{@link SASLErrorException}, {@link NotConnectedException} or + * {@link InterruptedException}. */ private Exception saslException; @@ -227,6 +228,8 @@ public final class SASLAuthentication { throw (SASLErrorException) saslException; } else if (saslException instanceof NotConnectedException) { throw (NotConnectedException) saslException; + } else if (saslException instanceof InterruptedException) { + throw (InterruptedException) saslException; } else { throw new IllegalStateException("Unexpected exception type" , saslException); }