It could be a very simple problem but I have been searching forum and trying different ways to solve it for hours .
I am writing a wrapper for Twitter4J and it is working but I don't know how to call a sub .
The following will log
B4X:
From try: stream_update
What happened?java.lang.NullPointerException
And even without try block , sub is not called .
I changed getObject() to this and null without any success .
Program started.
[Tue Jun 21 10:11:22 AST 2016]Establishing connection.
[Tue Jun 21 10:11:24 AST 2016]Connection established.
[Tue Jun 21 10:11:24 AST 2016]Receiving status stream.
From try: stream_update
class java.lang.NullPointerException: null
at smm.twitter4jp.TwitterStreamer$1.onStatus(TwitterStreamer.java:122)
at twitter4j.StatusStreamImpl.onStatus(StatusStreamImpl.java:75)
at twitter4j.StatusStreamBase$1.run(StatusStreamBase.java:105)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Thanks a lot .
I did not think about that because ba.Log(); was working .
I set it now and I just get signature does not match that is something I will take care of