Bug 529273 - js timer exception when updating jumplists. r=dao.
authorJim Mathies <jmathies@mozilla.com>
Tue, 15 Dec 2009 14:33:51 -0600
changeset 36224 3b2fec6aa462aae722557cdb8056fe0c299e8ceb
parent 36223 6515875bfbc3995f908e71d217746ff99f821db0
child 36225 8090e6b588031ac988da972e0c5d3716965ccd39
push idunknown
push userunknown
push dateunknown
reviewersdao
bugs529273
milestone1.9.3a1pre
Bug 529273 - js timer exception when updating jumplists. r=dao.
browser/components/wintaskbar/WindowsJumpLists.jsm
--- a/browser/components/wintaskbar/WindowsJumpLists.jsm
+++ b/browser/components/wintaskbar/WindowsJumpLists.jsm
@@ -336,17 +336,17 @@ var WinTaskbarJumpList =
 
     // XXX where can we grab this from in the build? Do we need to?
     file.append("firefox.exe");
 
     var handlerApp = Cc["@mozilla.org/uriloader/local-handler-app;1"].
                      createInstance(Ci.nsILocalHandlerApp);
     handlerApp.executable = file;
     // handlers default to the leaf name if a name is not specified
-    if (name.length != 0)
+    if (name && name.length != 0)
       handlerApp.name = name;
     handlerApp.detailedDescription = description;
     handlerApp.appendParameter(args);
 
     var item = Cc["@mozilla.org/windows-jumplistshortcut;1"].
                createInstance(Ci.nsIJumpListShortcut);
     item.app = handlerApp;
     item.iconIndex = icon;