Aniket Mokashi created PIG-3576:
-----------------------------------
Summary: 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
Priority: Trivial
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)