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

camel-telegream - NullPointerException with telegram webhook

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.4.0
    • None
    • Unknown

    Description

      This issue comes across camel-quarkus issue #1200 . The following router

      from("webhook:telegram:bots")
          .log("${body}");
      

      which is added before the camel context is started. So the doStart() in the TelegramEndpoint is deferred and that causes the WebHookEndpoint invokes the registerWebhook() throws NPE.
      It could be considered to move the codes to the doInit() which seems safer as this can also happens outside quarkus etc

      Attachments

        Activity

          People

            zhfeng Zheng Feng
            zhfeng Zheng Feng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: