From e8d4f7024cb1014f89cf2da59da0a1e44dba1f0e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 May 2013 22:19:59 +0400 Subject: fix crash when loading more headlines --- src/org/fox/ttrss/HeadlinesFragment.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/org') diff --git a/src/org/fox/ttrss/HeadlinesFragment.java b/src/org/fox/ttrss/HeadlinesFragment.java index 2080b043..d2923a42 100644 --- a/src/org/fox/ttrss/HeadlinesFragment.java +++ b/src/org/fox/ttrss/HeadlinesFragment.java @@ -679,11 +679,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener, TextView author = (TextView)v.findViewById(R.id.author); - if (author != null && articleAuthor.length() > 0) { - author.setText(getString(R.string.author_formatted, articleAuthor)); - } else { - author.setText(""); - } + if (author != null) + if (articleAuthor.length() > 0) { + author.setText(getString(R.string.author_formatted, articleAuthor)); + } else { + author.setText(""); + } /* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator); -- cgit v1.2.3