Resolved Nullpointer at a toString()

Discussion in 'Client & Site Support' started by Philosobyte, Dec 26, 2014.

  1. 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 (Text):
    1.  
    2. (03:32:18) java.lang.NullPointerException
    3. (03:32:18)     at com.runemate.game.api.hybrid.location.navigation.web.WebVertex.toString(ogb:263)
    4. (03:32:18)     at java.lang.String.valueOf(Unknown Source)
    5. (03:32:18)     at java.lang.StringBuilder.append(Unknown Source)
    6. (03:32:18)     at java.util.AbstractCollection.toString(Unknown Source)
    7. (03:32:18)     at com.raymondbl.runemate.natRunner.RaysNatRunner.merge(RaysNatRunner.java:73)
    8. (03:32:18)     at com.raymondbl.runemate.natRunner.RaysNatRunner.onStart(RaysNatRunner.java:94)
    9. (03:32:18)     at com.runemate.game.api.script.framework.AbstractScript.start(plb:183)
    10. (03:32:18)     at a.sJ.run(clb:102)
    11.  


     
  2. Best Answer:
    Post #4 by Cloud, Dec 26, 2014
  3. Thanks
     
  4. 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.
     
    #4 Cloud, Dec 26, 2014
    Last edited: Dec 26, 2014
  5. Duly noted.
     

Share This Page

Loading...