1
0
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:
cketti 2013-03-19 03:08:18 +01:00
parent 9118097dcb
commit 55ca846ced

View File

@ -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);
}