1
0
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:
mguessan 2011-05-30 22:26:02 +00:00
parent 44c9fdba0e
commit 694bacc4e0

View File

@ -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) {