MessageView: reject early invalid messageId.
Bug 2507898 Change-Id: I13148c49d9ad5ddfcf7a757e11651762fc8d1922
This commit is contained in:
parent
ddfe27d9a0
commit
e281ebc4e2
@ -327,6 +327,9 @@ public class MessageView extends Activity implements OnClickListener {
|
||||
*/
|
||||
public static void actionView(Context context, long messageId, long mailboxId,
|
||||
boolean disableReplyAndForward) {
|
||||
if (messageId < 0) {
|
||||
throw new IllegalArgumentException("MessageView invalid messageId " + messageId);
|
||||
}
|
||||
Intent i = new Intent(context, MessageView.class);
|
||||
i.putExtra(EXTRA_MESSAGE_ID, messageId);
|
||||
i.putExtra(EXTRA_MAILBOX_ID, mailboxId);
|
||||
|
Loading…
Reference in New Issue
Block a user