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 
    Extreme Donator

    Avalanche's Avatar
    Join Date
    Nov 2007
    Posts
    2,707
    Thanks given
    42
    Thanks received
    9
    Discord
    avalanache#4767
    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
    24
    Posts
    2,334
    Thanks given
    695
    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 [Only registered and activated users can see links. ])
    • Worth: $719 ($245 with sales)
    • Games owned: 86
    • Games not played: 27 (31%)
    • Hours on record: 1,851.8h
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Avalanche's Avatar
    Join Date
    Nov 2007
    Posts
    2,707
    Thanks given
    42
    Thanks received
    9
    Discord
    avalanache#4767
    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
    26
    Posts
    1,359
    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 [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2007
    Age
    28
    Posts
    2,396
    Thanks given
    5
    Thanks received
    434
    Rep Power
    902
    no code no help
    Hyperion V2 Martin's Updates.
    [Only registered and activated users can see links. ]

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

  6. #6  
    Extreme Donator

    Avalanche's Avatar
    Join Date
    Nov 2007
    Posts
    2,707
    Thanks given
    42
    Thanks received
    9
    Discord
    avalanache#4767
    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
    26
    Posts
    1,359
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    Have you changed your source code since you had those errors?
    Visit Rune Miracle [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Extreme Donator

    Avalanche's Avatar
    Join Date
    Nov 2007
    Posts
    2,707
    Thanks given
    42
    Thanks received
    9
    Discord
    avalanache#4767
    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
  •