fixed npe when OS invokes StartConversationsActivity with null action
This commit is contained in:
parent
cccb3772cf
commit
1615aeff87
|
@ -745,7 +745,11 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
|
||||||
return invite.invite();
|
return invite.invite();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch (intent.getAction()) {
|
final String action = intent.getAction();
|
||||||
|
if (action == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
switch (action) {
|
||||||
case Intent.ACTION_SENDTO:
|
case Intent.ACTION_SENDTO:
|
||||||
case Intent.ACTION_VIEW:
|
case Intent.ACTION_VIEW:
|
||||||
Uri uri = intent.getData();
|
Uri uri = intent.getData();
|
||||||
|
|
Loading…
Reference in a new issue