Skip to content

Commit 86b501c

Browse files
wmontwearnt
authored andcommitted
Add null check
1 parent b505278 commit 86b501c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mail/common/src/main/java/com/fsck/k9/mail/helper/Rfc822Token.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public boolean equals(@Nullable Object o) {
205205
}
206206

207207
public static String withULabelDomain(final String address) {
208+
if (address == null) return null;
208209
int at = address.lastIndexOf('@');
209210
if (at < 0 || at == address.length()-1)
210211
return address;

0 commit comments

Comments
 (0)