From b44d895165f5e804eeeed85ca1ba27eecca36d49 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 3 Nov 2014 18:22:40 +0300 Subject: [PATCH] fix crash while logging out --- .../src/main/java/org/fox/ttrss/OnlineActivity.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 a590f006..244f40a4 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 @@ -1201,8 +1201,13 @@ public class OnlineActivity extends CommonActivity { protected void logout() { setSessionId(null); - - findViewById(R.id.loading_container).setVisibility(View.VISIBLE); + + View loadingContainer = findViewById(R.id.loading_container); + + if (loadingContainer != null) { + loadingContainer.setVisibility(View.VISIBLE); + } + setLoadingStatus(R.string.login_ready, false); initMenu();