Protection if someone did change defaults for mms or mmsto

This commit is contained in:
amla70
2010-08-14 11:14:39 +00:00
parent be7d0d867d
commit 1dda577d89

View File

@@ -99,6 +99,11 @@ function toggleProtocolHandler(branch, name)
var register = branch.getBoolPref(name);
// Retrieve the object for that protocol
var protocolHandler = sendToPhoneProtocols[ name ];
// If someone did change the defaults for mms or mmsto this
// function will be called, but the handlers have been removed.
if (!protocolHandler)
return;
var proto = protocolHandler.prototype;
if (register)