diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2017-03-24 22:35:07 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2017-03-24 22:35:17 -0700 |
commit | 65bc5a2c045c38b35709964be614f5ceabc637ed (patch) | |
tree | 807246dcd3d010466d799b27646dafce1c338b18 /src/core/abstract/MCAddress.cpp | |
parent | 8ead0afefcde1f81d7a55e1b4c3224582188471c (diff) |
Fixed some crashes
Diffstat (limited to 'src/core/abstract/MCAddress.cpp')
-rw-r--r-- | src/core/abstract/MCAddress.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/abstract/MCAddress.cpp b/src/core/abstract/MCAddress.cpp index 335bc68b..505b064e 100644 --- a/src/core/abstract/MCAddress.cpp +++ b/src/core/abstract/MCAddress.cpp @@ -175,7 +175,11 @@ Array * Address::addressesWithRFC822String(String * string) struct mailimf_address_list * addr_list; Array * result; int r; - + + if (string == NULL) { + return NULL; + } + utf8String = string->UTF8Characters(); currentIndex = 0; |