Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16516

camel-salesforce - Maven plugin generated code AbstractDescribedSObjectBase can cause NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Information Provided
    • Affects Version/s: None
    • Fix Version/s: 3.10.0
    • Component/s: camel-salesforce
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The Maven plugin for camel-salesforce component has an issue. The constructor of the generated classes extending AbstractDescribedSObjectBase has a single line

      getAttributes().setType("$desc.Name");

      The issue is that AbstractDescribedSObjectBase does not initialize attributes, so getAttributes() returns null and I am getting nullpointerexception. I manually fixed on the generated code but, it is better if it gets fixed directly in the sobject-pojo.vm file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: