fix NPE for incoming failed messages

Fixes #2807
// FREEBIE
This commit is contained in:
Jake McGinty 2015-03-27 10:37:59 -07:00
parent 1b846c0842
commit 17383ddfe0

View File

@ -313,9 +313,11 @@ public class ConversationItem extends LinearLayout {
private void setFailedStatusIcons() { private void setFailedStatusIcons() {
dateText.setText(R.string.ConversationItem_error_not_delivered); dateText.setText(R.string.ConversationItem_error_not_delivered);
if (indicatorText != null) {
indicatorText.setText(R.string.ConversationItem_click_for_details); indicatorText.setText(R.string.ConversationItem_click_for_details);
indicatorText.setVisibility(View.VISIBLE); indicatorText.setVisibility(View.VISIBLE);
} }
}
private void setFallbackStatusIcons() { private void setFallbackStatusIcons() {
pendingIndicator.setVisibility(View.VISIBLE); pendingIndicator.setVisibility(View.VISIBLE);