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

@ -1201,8 +1201,13 @@ public class OnlineActivity extends CommonActivity {
protected void logout() { protected void logout() {
setSessionId(null); 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); setLoadingStatus(R.string.login_ready, false);
initMenu(); initMenu();