You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2016/11/21 18:37:58 UTC

[jira] [Resolved] (PIG-5064) NPE in TestScriptUDF#testPythonBuiltinModuleImport1 when JAVA_HOME is not set

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

Daniel Dai resolved PIG-5064.
-----------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 0.17.0

Patch committed to both trunk and 0.16 branch. Thanks Xiang!

> 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
>              Labels: UT
>             Fix For: 0.17.0, 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)