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

NullPointerException when assigning a simple Object as final bean

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.8.5, 2.9.1, 2.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      JSE6, Windows7

    • Estimated Complexity:
      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. stacktrace.txt
          6 kB
          Fabrice Daugan
        2. MyRouteBuilder.java
          0.3 kB
          Fabrice Daugan
        3. CAMEL-5051.patch
          0.6 kB
          Fabrice Daugan

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: