Change-Id: Icbd53166001d3be102bac6a8d2f782cb22c4dc56
private void processDialCall(String number) {
String dialNumber;
- if (number == null) {
+ if ((number == null) || (number.length() == 0)) {
dialNumber = mPhonebook.getLastDialledNumber();
if (dialNumber == null) {
if (DBG) log("processDialCall, last dial number null");
return;
}
} else {
+ // Remove trailing ';'
+ if (number.charAt(number.length() - 1) == ';') {
+ number = number.substring(0, number.length() - 1);
+ }
+
dialNumber = PhoneNumberUtils.convertPreDial(number);
}
// TODO(BT) do we need to terminate virtual call first