kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do not crash if RECIPIENT_EXTRA is null.
rodzic
65e88d2d1c
commit
1f5364f01d
|
@ -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);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue