[ 
https://issues.apache.org/jira/browse/PIG-5064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiang Li updated PIG-5064:
--------------------------
    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
{code}
Assert.assertTrue(t.get(0).toString().equals(System.getenv(input[1])));
{code}
t.get(0) is null, as a result, the following NPE is thrown:
{code}
java.lang.NullPointerException
        at 
org.apache.pig.test.TestScriptUDF.testPythonBuiltinModuleImport1(TestScriptUDF.java:250)
{code}

  was:
When JAVA_HOME is not set (my env is Red Hat 7, alternatives is used and 
JAVA_HOME is not set)
line 250
{code}
Assert.assertTrue(t.get(0).toString().equals(System.getenv(input[1])));
{code}
t.get(0) is null, as a result, the following NPE is thrown:
{code}
java.lang.NullPointerException
        at 
org.apache.pig.test.TestScriptUDF.testPythonBuiltinModuleImport1(TestScriptUDF.java:250)
{code}


> NPE in TestScriptUDF#testPythonBuiltinModuleImport1 when JAVA_HOME is not set
> -----------------------------------------------------------------------------
>
>                 Key: PIG-5064
>                 URL: https://issues.apache.org/jira/browse/PIG-5064
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.16.0
>            Reporter: Xiang Li
>            Assignee: Xiang Li
>            Priority: Minor
>             Fix For: 0.16.1
>
>         Attachments: PIG-5064-trunk-0.patch
>
>
> When JAVA_HOME is not set (my env is Red Hat 7, alternatives is used and 
> JAVA_HOME could be not set)
> line 250
> {code}
> Assert.assertTrue(t.get(0).toString().equals(System.getenv(input[1])));
> {code}
> t.get(0) is null, as a result, the following NPE is thrown:
> {code}
> java.lang.NullPointerException
>         at 
> org.apache.pig.test.TestScriptUDF.testPythonBuiltinModuleImport1(TestScriptUDF.java:250)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to