Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Implementing ChatboxListener gives Exception

Joined
Jul 24, 2014
Messages
188
I implemented ChatboxListener in my main script class, and implemented the method onMessageReceived(MessageEvent msg);

But now everytime I start the script I get this, and no messages are being logged.
When I remove the implements I don't get the error.

@Cloud @Cloud

Exception in thread "Thread-37" java.lang.NullPointerException
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(Unknown Source)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(Unknown Source)
at java.lang.reflect.Field.get(Unknown Source)
at com.runemate.game.a.AuX.short(bib:519)
at com.runemate.game.a.AuX.do(bib:252)
at com.runemate.game.api.b.coN.short(dxb:79)
at com.runemate.game.api.b.Prn.void(tob:76)
at com.runemate.game.api.a.d.nuL.void(qsb:277)
at com.runemate.game.api.a.d.coN.run(cvb:35)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Is this OSRS or RS3? Is this when a script is on the store or when being ran locally?
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,046
And I'm making an educated guess here and saying it's being run locally through SDK. Feel free to correct me @Exile.
 
Joined
Jul 24, 2014
Messages
188
And I'm making an educated guess here and saying it's being run locally through SDK. Feel free to correct me @Exile.
Correct :)

I get the problem with JRE and JDK, so that doesn't matter.

And yea it's for RS3; I never play OSRS
 
Top