Merge change 25839 into eclair
* changes: Fix potential ArrayIndexOutOfBoundsException.
This commit is contained in:
@@ -383,7 +383,7 @@ public abstract class SmsMessageBase {
|
||||
* 2. [x@y][ ]/[body]
|
||||
*/
|
||||
String[] parts = messageBody.split("( /)|( )", 2);
|
||||
if (parts.length < 1) return;
|
||||
if (parts.length < 2) return;
|
||||
emailFrom = parts[0];
|
||||
emailBody = parts[1];
|
||||
isEmail = true;
|
||||
|
||||
Reference in New Issue
Block a user