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

camel-ref: should use CamelContext.hasEndpoint but not CamelContext.getEndpoint to check existence of an endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.5, 4.8.2, 4.9.0
    • camel-core
    • None
    • Unknown

    Description

      Because CamelContext.getEndpoint(String uri) now will throw NoSuchEndpointException but not null, while CamelContext.hasEndpoint(String uri) is more proper here

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              ffang Freeman Yue Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: