Thread: NullPointerException - I think it's to do with saving

Results 1 to 8 of 8
  1. #1 NullPointerException - I think it's to do with saving 
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Here it is.

    Code:
    java.lang.NullPointerException
            at client.process(client.java:19192)
            at PlayerHandler.process(PlayerHandler.java:278)
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
            at client.logout(client.java:12415)
            at PlayerHandler.saveGame(PlayerHandler.java:379)
            at PlayerHandler.process(PlayerHandler.java:315)
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException


    and my lines


    line 19192....

    Code:
    } else {

    line 12415....

    Code:
    outStream.createFrame(109);
    I'm positive it's to do with saving. But I'm not sure if I should fix it or add a catch. And If I do fix it, I'm not sure how to. Ask for more info and I'll post it. Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Slay No More's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    2,335
    Thanks given
    696
    Thanks received
    170
    Rep Power
    554
    Quote Originally Posted by Jdog View Post
    Here it is.

    Code:
    java.lang.NullPointerException
            at client.process(client.java:19192)
            at PlayerHandler.process(PlayerHandler.java:278)
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
            at client.logout(client.java:12415)
            at PlayerHandler.saveGame(PlayerHandler.java:379)
            at PlayerHandler.process(PlayerHandler.java:315)
            at process.run(process.java:23)
            at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
    I'm positive it's to do with saving. But I'm not sure if I should fix it or add a catch. And If I do fix it, I'm not sure how to. Ask for more info and I'll post it. Thanks.

    i think its to do with item changing.. i notice if you go to the lines one a few it takes you to character item switching..or atleast it does on mine..
    Add me on skype if you wish to contact me.
    slaynomore
    My Steam Profile (from SteamDB)
    • Worth: $719 ($245 with sales)
    • Games owned: 86
    • Games not played: 27 (31%)
    • Hours on record: 1,851.8h
    Reply With Quote  
     

  3. #3  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    But wut about


    at client.logout(client.java:12415)
    at PlayerHandler.saveGame(PlayerHandler.java:379)


    I also go to the line 12415 and it's saving
    Reply With Quote  
     

  4. #4  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    30
    Posts
    1,357
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    Go to line 19192 in client, that veriable on that line is null...

    Same goes for the second error, veriable on line 12415 is null
    Visit Rune Miracle Here
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2007
    Age
    32
    Posts
    2,396
    Thanks given
    5
    Thanks received
    436
    Rep Power
    902
    no code no help
    Hyperion V2 Martin's Updates.

    Scar says:
    i hate it when it hits your face
    Reply With Quote  
     

  6. #6  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    line 19192....

    Code:
    } else {

    line 12415....

    Code:
    outStream.createFrame(109);
    Reply With Quote  
     

  7. #7  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    30
    Posts
    1,357
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    Have you changed your source code since you had those errors?
    Visit Rune Miracle Here
    Reply With Quote  
     

  8. #8  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Ya I added a shutdown hook to save my players I think? And couldn't I just add a catch to my save method?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •