Skip to content

Commit 305d209

Browse files
committed
PR feedback
1 parent cabae29 commit 305d209

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

msal4j-sdk/src/main/java/com/microsoft/aad/msal4j/ClientAssertion.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,16 @@ public String assertion() {
5454
if (assertionProvider != null) {
5555
try {
5656
String generatedAssertion = assertionProvider.call();
57+
5758
if (StringHelper.isBlank(generatedAssertion)) {
58-
throw new MsalClientException("Assertion provider returned null or empty assertion",
59-
AuthenticationErrorCode.INVALID_JWT);
59+
throw new MsalClientException(
60+
"Assertion provider returned null or empty assertion",
61+
AuthenticationErrorCode.INVALID_JWT);
6062
}
63+
6164
return generatedAssertion;
65+
} catch (MsalClientException ex) {
66+
throw ex;
6267
} catch (Exception ex) {
6368
throw new MsalClientException(ex);
6469
}

0 commit comments

Comments
 (0)