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

NullPointerException at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192) #34

Open
gth9001 opened this issue Feb 3, 2015 · 3 comments

Comments

@gth9001
Copy link

gth9001 commented Feb 3, 2015

With great effor I builded working (almost) api library, and it even sent me sms code (I used telegram-bot code). But after I write this sms code I got the following exception:
Exception in thread "Scheduller#1613213400" java.lang.NullPointerException at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source) at org.telegram.tl.TLObject.serialize(TLObject.java:46) at org.telegram.tl.StreamingUtils.writeTLObject(StreamingUtils.java:192) at org.telegram.tl.StreamingUtils.writeTLMethod(StreamingUtils.java:203) at org.telegram.api.requests.TLRequestInvokeWithLayer11.serializeBody(Unknown Source) at org.telegram.tl.TLObject.serialize(TLObject.java:46) at org.telegram.tl.TLObject.serialize(TLObject.java:34) at org.telegram.mtproto.schedule.Scheduller.actualPackages(Scheduller.java:388) at org.telegram.mtproto.schedule.Scheduller.doSchedule(Scheduller.java:406) at org.telegram.mtproto.MTProto$SchedullerThread.run(MTProto.java:704) at org.telegram.api.requests.TLRequestMessagesSendMessage.serializeBody(Unknown Source)
I think it can't serialize auth data. What can I do with it? Anybody faced the same problem? Thanks for answers.

@gth9001
Copy link
Author

gth9001 commented Feb 9, 2015

Problem solved :)

@danprat92
Copy link

@gth9001 Hey , i'm facing this issue , can u tell how did you solve it?

@gth9001
Copy link
Author

gth9001 commented Aug 7, 2015

@danprat92 Unfortunately I can't remember it now, it was a several months ago. But I can tell that finally I gave up on this library, there was too many problems

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

2 participants