Uploaded image for project: 'Fuse Tooling'
  1. Fuse Tooling
  2. FUSETOOLS-2144

CamelModelFactory not always initialized properly

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 9.0.0
    • Fix Version/s: 9.0.0
    • Component/s: Camel Editor
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Call CamelModelFactory.getLatestCamelVersion()

      I will add a unit test.

      Show
      Call CamelModelFactory.getLatestCamelVersion() I will add a unit test.

      Description

      While testing some SwitchYard issues, I stumbled upon a problem where the CamelModelFactory's getLatestCamelVersion() method isn't initialized properly when called statically from outside the Camel plug-ins. As a result, it was bombing on the line:

      return supportedCamelModels.keySet().iterator().next();
      

      Since the keySet wasn't being checked to be empty.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bfitzpat Brian Fitzpatrick
                Reporter:
                bfitzpat Brian Fitzpatrick
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: