Bug 817989 - [CONTACTS] Is not possible to save a contact with a very long phone number. r=gal

This commit is contained in:
Gregor Wagner 2012-12-04 13:00:36 -08:00
parent 4be2be38bd
commit cf581439fa

View File

@ -194,7 +194,8 @@ this.PhoneNumber = (function (dataBase) {
},
// +19497262896
get internationalNumber() {
var value = this.internationalFormat.replace(NON_DIALABLE_CHARS, "");
var value = this.internationalFormat ? this.internationalFormat.replace(NON_DIALABLE_CHARS, "")
: null;
Object.defineProperty(this, "nationalNumber", { value: value, enumerable: true });
return value;
}