#fixed code
                              private void outputManifest() throws IOException {
    List<String> outputManifests = config.outputManifests;
    if (outputManifests.isEmpty()) {
      return;
    }

    for (String outputManifest : outputManifests) {
      if (outputManifest.isEmpty()) {
        continue;
      }

      JSModuleGraph graph = compiler.getModuleGraph();
      if (shouldGenerateManifestPerModule(outputManifest)) {
        // Generate per-module manifests.
        Iterable<JSModule> modules = graph.getAllModules();
        for (JSModule module : modules) {
          Writer out = fileNameToOutputWriter(
              expandManifest(module, outputManifest));
          printManifestTo(module.getInputs(), out);
          out.close();
        }
      } else {
        // Generate a single file manifest.
        Writer out = fileNameToOutputWriter(
            expandManifest(null, outputManifest));
        if (graph == null) {
          printManifestTo(compiler.getInputsInOrder(), out);
        } else {
          printModuleGraphManifestTo(graph, out);
        }
        out.close();
      }
    }
  }
#vulnerable code 
                              private void outputManifest() throws IOException {
    String outputManifest = config.outputManifest;
    if (Strings.isEmpty(outputManifest)) {
      return;
    }

    JSModuleGraph graph = compiler.getModuleGraph();
    if (shouldGenerateManifestPerModule()) {
      // Generate per-module manifests.
      Iterable<JSModule> modules = graph.getAllModules();
      for (JSModule module : modules) {
        Writer out = fileNameToOutputWriter(expandManifest(module));
        printManifestTo(module.getInputs(), out);
        out.close();
      }
    } else {
      // Generate a single file manifest.
      Writer out = fileNameToOutputWriter(expandManifest(null));
      if (graph == null) {
        printManifestTo(compiler.getInputsInOrder(), out);
      } else {
        printModuleGraphManifestTo(graph, out);
      }
      out.close();
    }
  } 
                            #location 14 
                            #vulnerability type NULL_DEREFERENCE