mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 17:37:57 +00:00
Do not crash if RECIPIENT_EXTRA is null.
This commit is contained in:
@@ -434,9 +434,7 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle state, boolean ready) {
|
protected void onCreate(Bundle state, boolean ready) {
|
||||||
RecipientId recipientId = getRecipientId(getIntent());
|
if (getIntent().getStringExtra(RECIPIENT_EXTRA) == null) {
|
||||||
|
|
||||||
if (recipientId == null) {
|
|
||||||
Log.w(TAG, "[onCreate] Missing recipientId!");
|
Log.w(TAG, "[onCreate] Missing recipientId!");
|
||||||
// TODO [greyson] Navigation
|
// TODO [greyson] Navigation
|
||||||
startActivity(new Intent(this, MainActivity.class));
|
startActivity(new Intent(this, MainActivity.class));
|
||||||
@@ -444,6 +442,8 @@ public class ConversationActivity extends PassphraseRequiredActivity
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RecipientId recipientId = getRecipientId(getIntent());
|
||||||
|
|
||||||
reportShortcutLaunch(recipientId);
|
reportShortcutLaunch(recipientId);
|
||||||
setContentView(R.layout.conversation_activity);
|
setContentView(R.layout.conversation_activity);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user