summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-23 22:19:59 +0400
committerAndrew Dolgov <[email protected]>2013-05-23 22:19:59 +0400
commite8d4f7024cb1014f89cf2da59da0a1e44dba1f0e (patch)
tree359f535ceaa65b8d83b9d66510e2ce98fef640d2 /src
parent8872cc12ebcbf866c0bed4a243fa0a424e5e9759 (diff)
fix crash when loading more headlines
Diffstat (limited to 'src')
-rw-r--r--src/org/fox/ttrss/HeadlinesFragment.java11
1 files changed, 6 insertions, 5 deletions
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);