You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xiang Li (JIRA)" <ji...@apache.org> on 2016/11/18 09:18:58 UTC
[jira] [Comment Edited] (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:comment-tabpanel&focusedCommentId=15676256#comment-15676256 ]
Xiang Li edited comment on PIG-5064 at 11/18/16 9:18 AM:
---------------------------------------------------------
Patch 0 can be applied into branch-0.16 as well.
was (Author: water):
patch 0 can be applied into branch-0.16 as well.
> 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)