Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-735

AbstractInstalledLocalContainer will cause a NullPointerException if a simple file name is used as the "output" file

    Details

      Description

      AbstractInstalledLocalContainer's createJavaTask method attempts to ensure that all the correct folders exist before creating the output file. It does this by calling outputFile.getParentFile().mkdirs() without first ensuring that outputFile.getParentFile() is not null.

      To work around this, the value of outputFile.getParentFile() should be checked, or outputFile.getAbsoluteFile().getParentFile().mkdirs() should be used (since the absolute file must have a parent).

      Patch attached.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              christopherrued Christopher Rued (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: