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

NullPointerException when assigning a simple Object as final bean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.9.0
    • 2.8.5, 2.9.1, 2.10.0
    • camel-core
    • None
    • JSE6, Windows7

    • Novice

    Description

      Considering this route :

      from("direct://myendpoint").routeId("myendpoint.route").bean(new Object());

      I get a NPE. I know, this is a very rare case that noone will reach again...
      Anyway the fix is very simple, and is attached with it's test case.

      Attachments

        1. CAMEL-5051.patch
          0.6 kB
          Fabrice Daugan
        2. MyRouteBuilder.java
          0.3 kB
          Fabrice Daugan
        3. stacktrace.txt
          6 kB
          Fabrice Daugan

        Activity

          People

            bvahdat Babak Vahdat
            fabdouglas Fabrice Daugan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: