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 Nullpointer at a toString()

Joined
Dec 18, 2014
Messages
398
I'm not sure if this is on my end or a client bug.
I made an arraylist of coordinate vertices, wrote it to a file using ObjectOutputStream, read it in with an ObjectInputStream, did System.out.println(arraylist);, and got this:

Code:
(03:32:18) java.lang.NullPointerException
(03:32:18)     at com.runemate.game.api.hybrid.location.navigation.web.WebVertex.toString(ogb:263)
(03:32:18)     at java.lang.String.valueOf(Unknown Source)
(03:32:18)     at java.lang.StringBuilder.append(Unknown Source)
(03:32:18)     at java.util.AbstractCollection.toString(Unknown Source)
(03:32:18)     at com.raymondbl.runemate.natRunner.RaysNatRunner.merge(RaysNatRunner.java:73)
(03:32:18)     at com.raymondbl.runemate.natRunner.RaysNatRunner.onStart(RaysNatRunner.java:94)
(03:32:18)     at com.runemate.game.api.script.framework.AbstractScript.start(plb:183)
(03:32:18)     at a.sJ.run(clb:102)
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
As a note, instead of serializing it you need to use a FileWeb and use it's toByteArray method. Webs contain many transient properties that are handled in special ways, and because of that it threw the null pointer.
 
Last edited:
Joined
Dec 18, 2014
Messages
398
As a note, instead of serializing it you need to use a FileWeb and use it's toByteArray method. Webs contain many transient properties that are handled in special ways, and because of that it through the null pointer.
Duly noted.
 
Top