hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankur (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1233) NullPointerException in AVG
Date Wed, 10 Feb 2010 07:12:28 GMT

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

Ankur updated PIG-1233:
-----------------------

    Attachment: jira-1233.patch

Attached is a very simple patch that adds the required null checks. This is a very simple
code change so I don't think any new test cases are needed. 

> NullPointerException in AVG 
> ----------------------------
>
>                 Key: PIG-1233
>                 URL: https://issues.apache.org/jira/browse/PIG-1233
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Ankur
>             Fix For: 0.6.0
>
>         Attachments: jira-1233.patch
>
>
> The overridden method - getValue() in AVG throws null pointer exception in case accumulate()
is not called leaving variable 'intermediateCount'  initialized to null. This causes java
to throw exception when it tries to 'unbox' the value for numeric comparison.

-- 
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