fix NPE in MessageProvider

This commit is contained in:
Vincent Breitmoser 2016-10-11 13:55:25 +02:00
parent 54bf6f7bd5
commit dae6be34df

View file

@ -935,8 +935,8 @@ public class MessageProvider extends ContentProvider {
for (final LocalMessage message : messages) {
final MessageInfoHolder messageInfoHolder = new MessageInfoHolder();
final LocalFolder messageFolder = message.getFolder();
final Account messageAccount = message.getAccount();
final Account messageAccount = messageInfoHolder.message.getAccount();
helper.populate(messageInfoHolder, message, new FolderInfoHolder(context,
messageFolder, messageAccount), messageAccount);