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

risk of NPE in CopyCommands processArguments()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.2, 0.24.0
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: fs
    • Labels:
      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.8 kB
          Daryn Sharp
        2. HADOOP-8179.patch
          0.9 kB
          Steve Loughran

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: