Skip to content

Saving config file fails b/c of bad files.path value #581

Description

@RealRaven2000

When trying to save configuration data, QuickFolders was throwing the following exception for one user:

[Exception... "Component returned failure code: 0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH) [nsIFile.initWithPath]"  nsresult: "0x80520001 (NS_ERROR_FILE_UNRECOGNIZED_PATH)"  location: "JS frame :: jar:file:///home/mglazer/.thunderbird/25pcu5tx.default/extensions/quickfolders@curious.be.xpi!/chrome/content/api/Utilities/implementation.js :: fileConfig :: line 25"  data: no] implementation.js:25:19
Uncaught (in promise) Error: An unexpected error occurred undefined
renderView: "TypeError: performance is null" viewer.mjs:5534:19

This was thrown at the following line:

    let dPath = prefs.getStringPref('files.path');
    if (dPath) {
      let defaultPath = Cc["@mozilla.org/file/local;1"].createInstance(NSIFILE);
       ...
   }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions