Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Pointer Exception #40

Open
uwedisch opened this issue Mar 22, 2024 · 0 comments
Open

Null Pointer Exception #40

uwedisch opened this issue Mar 22, 2024 · 0 comments

Comments

@uwedisch
Copy link

I get this when running or starting the container:

19:31:07.936 INFO  - Info enabled
19:31:07.940 INFO  - Connecting MQTT client
19:31:08.510 INFO  - MQTT client connected
Exception in thread "OkHttp Dispatcher" java.lang.NullPointerException
	at de.rnd7.mqtttelegram.telegram.BotService.handleUpdate(BotService.java:59)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at de.rnd7.mqtttelegram.telegram.BotService.lambda$start$1(BotService.java:50)
	at com.pengrad.telegrambot.impl.UpdatesHandler$1.onResponse(UpdatesHandler.java:73)
	at com.pengrad.telegrambot.impl.UpdatesHandler$1.onResponse(UpdatesHandler.java:49)
	at com.pengrad.telegrambot.impl.TelegramBotClient$1.onResponse(TelegramBotClient.java:52)
	at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

Wireshark trace shows that connection to Telegram API is established. I only see one packet application data from the container to Telegram and afterwards one from Telegram to the container. I used the config.json and filled in my own data.

Using latest build of mqtt-to-telegram with Docker on Ubuntu 22.04 LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant