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

Potential null dereference in Utilities#clearWork()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 0.13.1
    • None
    • None
    • None

    Description

          Path mapPath = getPlanPath(conf, MAP_PLAN_NAME);
          Path reducePath = getPlanPath(conf, REDUCE_PLAN_NAME);
      
          // if the plan path hasn't been initialized just return, nothing to clean.
          if (mapPath == null && reducePath == null) {
            return;
          }
      
          try {
            FileSystem fs = mapPath.getFileSystem(conf);
      

      If mapPath is null but reducePath is not null, getFileSystem() call would produce NPE

      Attachments

        1. HIVE-8458.v2.patch
          0.6 kB
          Ted Yu
        2. HIVE-8458_001.patch
          0.6 kB
          skrho

        Activity

          People

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

            Dates

              Created:
              Updated: