diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-23 15:03:07 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-23 15:03:07 +0200 |
commit | 883b156dd1d42d3ba44413ea0cbaa76a7beb0276 (patch) | |
tree | 744cb6ed8deca28064dffb816a449d302dfd127f /toolkit/profile/content/createProfileWizard.js | |
parent | 362bb20730ca3250f9f7c4103aeda3f8a240e7a8 (diff) | |
download | uxp-883b156dd1d42d3ba44413ea0cbaa76a7beb0276.tar.gz |
Toolkit - Fix throws an error from Create a New Profile
Issue #531
Diffstat (limited to 'toolkit/profile/content/createProfileWizard.js')
-rw-r--r-- | toolkit/profile/content/createProfileWizard.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/toolkit/profile/content/createProfileWizard.js b/toolkit/profile/content/createProfileWizard.js index 1963f66bc4..14d006b317 100644 --- a/toolkit/profile/content/createProfileWizard.js +++ b/toolkit/profile/content/createProfileWizard.js @@ -96,13 +96,15 @@ function chooseProfileFolder() dirChooser.show(); newProfileRoot = dirChooser.file; - // Disable the "Default Folder..." button when the default profile folder - // was selected manually in the File Picker. - document.getElementById("useDefault").disabled = - (newProfileRoot.parent.equals(gDefaultProfileParent)); + if (newProfileRoot) { + // Disable the "Default Folder..." button when the default profile folder + // was selected manually in the File Picker. + document.getElementById("useDefault").disabled = + (newProfileRoot.parent.equals(gDefaultProfileParent)); - gProfileRoot = newProfileRoot; - updateProfileDisplay(); + gProfileRoot = newProfileRoot; + updateProfileDisplay(); + } } // Checks the current user input for validity and triggers an error message accordingly. |