fix crash while logging out

This commit is contained in:
Andrew Dolgov 2014-11-03 18:22:40 +03:00
parent e0909900a4
commit b44d895165

View File

@ -1202,7 +1202,12 @@ 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();