telegram-s / telegram-actors

Lighweight enhanced Actors for Java
MIT License
12 stars 11 forks source link

NPE in ActorSystem.close on calling api.switchToDc #1

Open ghost opened 10 years ago

ghost commented 10 years ago

Hi,

When I try calling api.switchToDc I get a NullPointerException in ActorSystem. I didn't have this before.

Exception in thread "main" java.lang.NullPointerException
at org.telegram.actors.ActorSystem.close(ActorSystem.java:97)
at org.telegram.mtproto.MTProto.close(MTProto.java:221)
at org.telegram.api.engine.TelegramApi.switchToDc(TelegramApi.java:161)
at TelegramApplication.authSendCode(TelegramApplication.java:59)
at TelegramApplication.updateDatacenters(TelegramApplication.java:43)
at TelegramService.run(TelegramService.java:9)
at TelegramService.main(TelegramService.java:4)
ashokcoolguys commented 9 years ago

Have you fixed this issue..