k9mail/k-9 — pull request #266 by m0vie (2013-02-18 18:03:44+00:00)
Title: message view / list: fix NPE when list is empty

This happened for example in a starred-message-only view when
un-starting the last message. This led to isFirst() and isLast()
causing a NullPointerException when trying to update the
previous / next buttons.

new version using the existing isEmpty() method