diff --git a/src/com/fsck/k9/provider/MessageProvider.java b/src/com/fsck/k9/provider/MessageProvider.java index a6fadc3f0..dea58d60e 100644 --- a/src/com/fsck/k9/provider/MessageProvider.java +++ b/src/com/fsck/k9/provider/MessageProvider.java @@ -128,7 +128,7 @@ public class MessageProvider extends ContentProvider @Override public Long getField(final MessageInfoHolder source) { - return ((LocalStore.LocalMessage) source.message).getId(); + return source.message.getId(); } } public static class CountExtractor implements FieldExtractor