hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Francisoud (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-92) PigContext NullPointerException because of uninitialize conf
Date Mon, 11 Feb 2008 15:54:08 GMT

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

Benjamin Francisoud updated PIG-92:
-----------------------------------

    Attachment: PIG-92-v02.patch

new patch against trunk r620508

> PigContext NullPointerException because of uninitialize conf
> ------------------------------------------------------------
>
>                 Key: PIG-92
>                 URL: https://issues.apache.org/jira/browse/PIG-92
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.1.0
>            Reporter: Benjamin Francisoud
>         Attachments: PIG-92-v01.patch, PIG-92-v02.patch
>
>
> This simple code throw an NPE
> {code:java}
> final PigContext pigContext = new PigContext(ExecType.MAPREDUCE);
> pigContext.getConf().putAll(properties);
> {code}
> Because in PigContext.java:
> {code:java}
> transient private Properties conf = null;
> public void connect() throws ExecException {
>     ... 
>     conf = new Properties();
>     ....
> }
> {code}
> Simple patch:
> {code:java}
> transient private Properties conf = new Properties();
> public void connect() throws ExecException {
>     ... 
> }
> {code}
> This is regression already fix in PIG-69.
> Introduce with PIG-32

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message