1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

avoid NPE. address may be null when the parser is failed.

This commit is contained in:
Koji Arai 2012-02-29 00:51:02 +09:00
parent 39f2138292
commit f9fb74241a

View File

@ -2182,6 +2182,8 @@ public class MimeUtility {
}
private static String getJisVariantFromAddress(String address) {
if (address == null)
return null;
if (isInDomain(address, "docomo.ne.jp") || isInDomain(address, "dwmail.jp") ||
isInDomain(address, "pdx.ne.jp") || isInDomain(address, "willcom.com"))
return "docomo";