Search:

Type: Posts; User: bartolio

Search: Search took 0.11 seconds.

  1. Re: nullpointer exception when adding Object to ArrayList

    I knew that is had a null value, I just don't know why because the method first creates a new Room object and than adds it to the ArrayList

    garden = new Room("description");
    rooms.add(garden);
    ...
  2. Re: nullpointer exception when adding Object to ArrayList

    Is this what you need?

    java.lang.NullPointerException
    at Game.createRooms(Game.java:136)
    at Game.<init>(Game.java:33)
  3. Re: nullpointer exception when adding Object to ArrayList

    I've uploaded the game, can you please check it out?

    http://rapidshare.com/files/1529024034/Versie%2008.zip
  4. Re: nullpointer exception when adding Object to ArrayList

    Oke sorry, I'm still learning
  5. Re: nullpointer exception when adding Object to ArrayList

    The error message is: java.lang.NullPointerException: null

    and the code is




    public class Game
    {
    private Parser parser;
  6. Re: nullpointer exception when adding Object to ArrayList

    Oh sorry, I meant that I've editted the post, why can't i see the post anymore? did I made a mistake?
  7. Re: nullpointer exception when adding Object to ArrayList

    Done
Results 1 to 7 of 8