Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3576

NPE due to PIG-3549 when job never gets submitted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.12.1, 0.13.0
    • None
    • None

    Description

      NPE can happen if job never gets submitted due to errors like - input path does not exists. Following line (toString method) throws npe-

      msg.append("JobID: " + j.getAssignedJobID().toString() + " Reason: " + j.getMessage());
      

      Apparently, a.toString can throw NPE, but String.valueOf(a) handles null well(writes "null" for null values).

      Attachments

        1. PIG-3576-1.patch
          2 kB
          Aniket Namadeo Mokashi
        2. PIG-3576.patch
          0.8 kB
          Lorand Bendig

        Activity

          People

            lbendig Lorand Bendig
            aniket486 Aniket Namadeo Mokashi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: