[
https://issues.apache.org/jira/browse/PIG-3576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834197#comment-13834197
]
Aniket Mokashi commented on PIG-3576:
-------------------------------------
Thanks [~cheolsoo], I've attached the new patch. Will commit it to branch-0.12
and trunk.
> NPE due to PIG-3549 when job never gets submitted
> -------------------------------------------------
>
> Key: PIG-3576
> URL: https://issues.apache.org/jira/browse/PIG-3576
> Project: Pig
> Issue Type: Bug
> Reporter: Aniket Mokashi
> Assignee: Lorand Bendig
> Priority: Trivial
> Fix For: 0.13.0
>
> Attachments: PIG-3576-1.patch, PIG-3576.patch
>
>
> NPE can happen if job never gets submitted due to errors like - input path
> does not exists. Following line (toString method) throws npe-
> {code}
> msg.append("JobID: " + j.getAssignedJobID().toString() + " Reason: " +
> j.getMessage());
> {code}
> Apparently, a.toString can throw NPE, but String.valueOf(a) handles null
> well(writes "null" for null values).
--
This message was sent by Atlassian JIRA
(v6.1#6144)