mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -05:00
Avoid NullPointerException when message contains no subject
This commit is contained in:
parent
9118097dcb
commit
55ca846ced
@ -3286,7 +3286,9 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
||||
if (mIsThreadDisplay) {
|
||||
if (cursor.moveToFirst()) {
|
||||
mTitle = cursor.getString(SUBJECT_COLUMN);
|
||||
mTitle = Utility.stripSubject(mTitle);
|
||||
if (!StringUtils.isNullOrEmpty(mTitle)) {
|
||||
mTitle = Utility.stripSubject(mTitle);
|
||||
}
|
||||
if (StringUtils.isNullOrEmpty(mTitle)) {
|
||||
mTitle = getString(R.string.general_no_subject);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user