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

CamelModelFactory not always initialized properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 9.0.0
    • 9.0.0
    • Camel Editor
    • None
    • Hide

      Call CamelModelFactory.getLatestCamelVersion()

      I will add a unit test.

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

      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.

              bfitzpat_rh Brian Fitzpatrick (Inactive)
              bfitzpat_rh Brian Fitzpatrick (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: