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

NPE in GenericOptionsParser#preProcessForWindows()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1-win, 2.2.0, 3.0.0-alpha1
    • Fix Version/s: 1-win, 2.3.0
    • Component/s: util
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      main() in java guarantees that args is not null, but on some uses of Tool interface from java, people seem to pass around null as args, causing a NPE in GenericOptionsParser.

      Although, passing null is not recommended, we can do a trivial fix.

        Attachments

        1. hbase-10094_v1.patch
          0.8 kB
          Enis Soztutar
        2. hadoop-10094-branch-1-win_v2.patch
          2 kB
          Enis Soztutar
        3. hadoop-10094_v2.patch
          2 kB
          Enis Soztutar

          Issue Links

            Activity

              People

              • Assignee:
                enis Enis Soztutar
                Reporter:
                enis Enis Soztutar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: