You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zheng Feng (Jira)" <ji...@apache.org> on 2020/05/13 14:03:00 UTC
[jira] [Created] (CAMEL-15057) camel-telegream -
NullPointerException with telegram webhook
Zheng Feng created CAMEL-15057:
----------------------------------
Summary: camel-telegream - NullPointerException with telegram webhook
Key: CAMEL-15057
URL: https://issues.apache.org/jira/browse/CAMEL-15057
Project: Camel
Issue Type: Bug
Components: camel-telegram, camel-webhook
Affects Versions: 3.2.0
Reporter: Zheng Feng
Assignee: Zheng Feng
This issue comes across [camel-quarkus issue #1200 |https://github.com/apache/camel-quarkus/issues/1200]. The following router
{code:java}
from("webhook:telegram:bots")
.log("${body}");
{code}
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)