mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
avoid NPE. address may be null when the parser is failed.
This commit is contained in:
parent
39f2138292
commit
f9fb74241a
@ -2182,6 +2182,8 @@ public class MimeUtility {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String getJisVariantFromAddress(String address) {
|
private static String getJisVariantFromAddress(String address) {
|
||||||
|
if (address == null)
|
||||||
|
return null;
|
||||||
if (isInDomain(address, "docomo.ne.jp") || isInDomain(address, "dwmail.jp") ||
|
if (isInDomain(address, "docomo.ne.jp") || isInDomain(address, "dwmail.jp") ||
|
||||||
isInDomain(address, "pdx.ne.jp") || isInDomain(address, "willcom.com"))
|
isInDomain(address, "pdx.ne.jp") || isInDomain(address, "willcom.com"))
|
||||||
return "docomo";
|
return "docomo";
|
||||||
|
Loading…
Reference in New Issue
Block a user