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

NullPointerException on BindyFixedLengthFactory.unbind()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.12.0
    • 2.11.4, 2.12.3, 2.13.0
    • camel-bindy
    • None
    • Novice

    Description

      The Camel Bindy component throws a NullPointerException on unbind when you've specified a header, but no footer. It looks like there was a simple copy/paste error in the marshal method. When generating the models, it checks the headerRow for null and then adds the headerRow. It then checks the headerRow (not the footerRow) for null and then adds the footerRow. Later down the chain, the BindyFixedLengthFactory throws a null exception when it tries to call getName() on the model Class.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jreagan Josh Reagan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: