mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
Caldav: Fix NullPointerException in getTimezoneIdFromExchange
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1695 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
44c9fdba0e
commit
694bacc4e0
@ -2149,9 +2149,11 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
byte[] roamingdictionary = getBinaryPropertyIfExists(responses[0].getProperties(HttpStatus.SC_OK), "roamingdictionary");
|
||||
if (roamingdictionary != null) {
|
||||
timezoneName = getTimezoneNameFromRoamingDictionary(roamingdictionary);
|
||||
if (timezoneName != null) {
|
||||
timezoneId = ResourceBundle.getBundle("timezoneids").getString(timezoneName);
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (MissingResourceException e) {
|
||||
LOGGER.warn("Unable to retrieve Exchange timezone id for name " + timezoneName);
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user