Hello all ,
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
And even without try block , sub is not called .
I changed getObject() to this and null without any success .
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
I changed getObject() to this and null without any success .
B4X:
@Override
public void onStatus(Status status) {
try{
ba.Log("From try: "+eventName + "_update" );
ba.raiseEventFromDifferentThread(getObject(), null, 0, eventName + "_update" , false, new Object[] {status});
}
catch (Exception e){
ba.Log("What happened?"+e);
}
}