Should not use double-quoted empty string.

Some host may reject such the From address.
This commit is contained in:
Koji Arai 2011-02-17 00:32:21 +09:00
parent d1d7b5fb70
commit 68381d4725
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public class Address {
}
public String toEncodedString() {
if (mPersonal != null) {
if (mPersonal != null && !mPersonal.equals("")) {
return EncoderUtil.encodeAddressDisplayName(mPersonal) + " <" + mAddress + ">";
} else {
return mAddress;