Skip to content

Commit

Permalink
fixed possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
desperateCoder committed May 22, 2019
1 parent db268ed commit f7c7ffc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -118,8 +118,8 @@ public void onBindViewHolder(@NonNull CardViewHolder viewHolder, int position) {
return true;
});
viewHolder.cardTitle.setText(card.getCard().getTitle());

if (card.getCard().getDescription().length() > 0) {
String description = card.getCard().getDescription();
if (description != null && description.length() > 0) {
viewHolder.cardDescription.setText(card.getCard().getDescription());
viewHolder.cardDescription.setVisibility(View.VISIBLE);
} else {
Expand Down

0 comments on commit f7c7ffc

Please sign in to comment.