Skip to content

Commit 45937af

Browse files
committed
O365: authenticator fix regression
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3721 3d1905a2-6b24-0410-a738-b14d5a86fcbd
1 parent af386e9 commit 45937af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/davmail/exchange/auth/O365Authenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void authenticate() throws IOException {
291291
}
292292

293293
private void checkConfigErrors(JSONObject config) throws DavMailAuthenticationException {
294-
if (config.optString("strServiceExceptionMessage") != null) {
294+
if (config.optString("strServiceExceptionMessage", null) != null) {
295295
throw new DavMailAuthenticationException("EXCEPTION_AUTHENTICATION_FAILED_REASON", config.optString("strServiceExceptionMessage"));
296296
}
297297
}

0 commit comments

Comments
 (0)