Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8179

risk of NPE in CopyCommands processArguments()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.2, 0.24.0
    • 0.23.3, 2.0.2-alpha
    • fs
    • None

    Description

      My IDE is warning me that the is.close() method will NPE if the is = src.fs.open(src.path); call raises an exception, which could happen if the source path could not be opened. There should be an if (is!=null) wrapper

      Attachments

        1. HADOOP-8179.patch
          0.9 kB
          Steve Loughran
        2. HADOOP-8179.patch
          0.8 kB
          Daryn Sharp

        Issue Links

          Activity

            People

              daryn Daryn Sharp
              stevel@apache.org Steve Loughran
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: