Fix crash

This commit is contained in:
nielsandriesse 2020-08-05 09:25:29 +10:00
parent 97491bb824
commit e76afd0051

View File

@ -190,6 +190,7 @@ class HomeActivity : PassphraseRequiredActionBarActivity, ConversationClickListe
override fun onResume() {
super.onResume()
if (TextSecurePreferences.getLocalNumber(this) == null) { return; } // This can be the case after a secondary device is auto-cleared
profileButton.update()
val isMasterDevice = (TextSecurePreferences.getMasterHexEncodedPublicKey(this) == null)
val hasViewedSeed = TextSecurePreferences.getHasViewedSeed(this)