Bug 700054 - Emoticons not displayed in pull-down menu using GNOME desktop; r=bwinton, ui-r=mconley, a=standard8
authorJim Porter <squibblyflabbetydoo@gmail.com>
Mon, 14 Nov 2011 21:19:09 -0600
changeset 11170 3deba8f0c001d56293e00f1147e5f11b55be51fd
parent 11169 622c1cb931273d1d89d7d2656a24ec98ba33ffc4
child 11171 a7f24947dc03a2d9ae802bf40bfa9cf996d1db2b
push id6
push userbienvenu@nventure.com
push dateWed, 16 May 2012 22:24:51 +0000
treeherdertry-comm-central@ac395aea3008 [default view] [failures only]
reviewersbwinton, mconley, standard8
bugs700054
Bug 700054 - Emoticons not displayed in pull-down menu using GNOME desktop; r=bwinton, ui-r=mconley, a=standard8
mail/base/content/specialTabs.js
--- a/mail/base/content/specialTabs.js
+++ b/mail/base/content/specialTabs.js
@@ -664,16 +664,18 @@ var specialTabs = {
    *             10.0 => [10, 0, ""]
    * This could be a static function, but no current reason for it to
    * be available outside this object's scope; as a method, it doesn't
    * pollute anyone else's namespace
    */
   splitVersion: function(version) {
     let re = /^(\d+)\.(\d+)\.?(.*)$/;
     let fields = re.exec(version);
+    if (fields === null)
+      return null;
     /* First element of the array from regex match is the entire string; drop that */
     fields.shift();
     return fields;
   },
 
   /**
    * In the case of an upgrade, returns the version we're upgrading
    * from, as well as the current version.  In the case of a fresh profile,