Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5064

NPE in TestScriptUDF#testPythonBuiltinModuleImport1 when JAVA_HOME is not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.16.0
    • 0.17.0, 0.16.1
    • None
    • Reviewed

    Description

      When JAVA_HOME is not set (my env is Red Hat 7, alternatives is used and JAVA_HOME could be not set)
      line 250

      Assert.assertTrue(t.get(0).toString().equals(System.getenv(input[1])));
      

      t.get(0) is null, as a result, the following NPE is thrown:

      java.lang.NullPointerException
              at org.apache.pig.test.TestScriptUDF.testPythonBuiltinModuleImport1(TestScriptUDF.java:250)
      

      Attachments

        1. PIG-5064-trunk-0.patch
          0.8 kB
          Xiang Li

        Activity

          People

            xiangli Xiang Li
            xiangli Xiang Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: