Browse Source

Fixed issue #1406 - Exchange integration wizard fails if server does not support autodiscovery.

Thorsten Eckel 7 years ago
parent
commit
cb3506da03
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controllers/integration/exchange_controller.rb

+ 1 - 1
app/controllers/integration/exchange_controller.rb

@@ -13,7 +13,7 @@ class Integration::ExchangeController < ApplicationController
       )
       )
 
 
       {
       {
-        endpoint: client.autodiscover.ews_url,
+        endpoint: client.try(:autodiscover).try(:ews_url),
       }
       }
     end
     end
   end
   end