From aaed022731057d20ad44ea3789a7a76607fdf951 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 31 Oct 2014 09:41:53 +0300 Subject: [PATCH] setloadingstatus: check if all views exist --- .../src/main/java/org/fox/ttrss/OnlineActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java index 265e8e2a..0209d697 100644 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java @@ -1202,7 +1202,11 @@ public class OnlineActivity extends CommonActivity { tv.setText(status); } - findViewById(R.id.loading_container).setVisibility(status == R.string.blank ? View.GONE : View.VISIBLE); + View loadingContainer = findViewById(R.id.loading_container); + + if (loadingContainer != null) { + loadingContainer.setVisibility(status == R.string.blank ? View.GONE : View.VISIBLE); + } setProgressBarIndeterminateVisibility(showProgress); }