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

NPE in GenericOptionsParser#preProcessForWindows()

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1-win, 2.2.0, 3.0.0-alpha1
    • 1-win, 2.3.0
    • util
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment