Bug 748667 - B2G SMS: can't receive normal SMS, message.header is undefined. r=philikon

--HG--
extra : rebase_source : 0fccacf5bb7747a96d420e65389f4b3f6fb81ad8
This commit is contained in:
Vicamo Yang 2012-04-25 19:34:18 -07:00
Родитель 9d78d2fad5
Коммит 5ebe4fbd96
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -513,7 +513,7 @@ RadioInterfaceLayer.prototype = {
// Dispatch to registered handler if application port addressing is
// available. Note that the destination port can possibly be zero when
// representing a UDP/TCP port.
if (message.header.destinationPort != null) {
if (message.header && message.header.destinationPort != null) {
let handler = this.portAddressedSmsApps[message.header.destinationPort];
if (handler) {
handler(message);