Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-9301

Potential null dereference in MoveTask#createTargetPath()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None
    • None

    Description

          if (mkDirPath != null & !fs.exists(mkDirPath)) {
      

      '&&' should be used instead of single ampersand.

      If mkDirPath is null, fs.exists() would still be called - resulting in NPE.

      Attachments

        1. HIVE-9301.patch
          0.8 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: