Commit 478a83f1 authored by Frank-Rainer Grahl's avatar Frank-Rainer Grahl Committed by Georg Koppen
Browse files

Bug 1246614 - Check if system add-ons directory exists before trying to clean it. r=mossop

--HG--
extra : rebase_source : 44545607f4434a8ad03cdc59306e02517056d42c
parent c961ef94
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8023,6 +8023,12 @@ Object.assign(SystemAddonInstallLocation.prototype, {
   * to cleanup again next time.
   */
  cleanDirectories: Task.async(function*() {

    // System add-ons directory does not exist
    if (!(yield OS.File.exists(this._baseDir.path))) {
      return;
    }

    let iterator;
    try {
      iterator = new OS.File.DirectoryIterator(this._baseDir.path);