Thread: Is this bad??

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1 Is this bad?? 
    Registered Member
    Join Date
    Aug 2011
    Age
    26
    Posts
    330
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    Well im just testing some things on my server and what not and this shows up::


    Now starting Drowning508... Please wait...

    Starting server on port: 43594
    [Ge Prices loaded]
    [GrandExchange] - Loaded Offers
    Connection recieved from: 127.0.0.1
    [SERVER-PROTECT] Checking Host...
    [SERVER-PROTECT] Checking Pattern...
    Interface Id: 378 Button Id: 140.
    Interface Id: 548 Button Id: 34.
    Interface Id: 274 Button Id: 8.
    Connection recieved from: 127.0.0.1
    [SERVER-PROTECT] Checking Host...
    [SERVER-PROTECT] Checking Pattern...
    Interface Id: 378 Button Id: 140.
    Connection recieved from: 127.0.0.1
    [SERVER-PROTECT] Checking Host...
    [SERVER-PROTECT] Checking Pattern...
    Interface Id: 378 Button Id: 140.
    Connection recieved from: 127.0.0.1
    [SERVER-PROTECT] Checking Host...
    [SERVER-PROTECT] Checking Pattern...
    Interface Id: 378 Button Id: 140.
    Interface Id: 771 Button Id: 20.
    Interface Id: 771 Button Id: 319.
    Interface Id: 771 Button Id: 362.
    Interface Id: 548 Button Id: 34.
    Interface Id: 274 Button Id: 15.
    Interface Id: 274 Button Id: 11.
    Exception in thread "Thread-0" java.lang.NullPointerException
    at palidino76.rs2.player.Player.dropStuff(Player.java :3526)
    at palidino76.rs2.player.Player.process(Player.java:2 149)
    at palidino76.rs2.Engine.run(Engine.java:230)
    at java.lang.Thread.run(Thread.java:662)
    Connection recieved from: 127.0.0.1


    The exception thread thing is what worries me, because it logs me out, and i have to restart the server.
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Dec 2010
    Posts
    210
    Thanks given
    40
    Thanks received
    28
    Rep Power
    26
    Yep. Palidino is very unstable.

    Reply With Quote  
     

  3. #3  
    Registered Member
    Emily's Avatar
    Join Date
    Jul 2010
    Age
    30
    Posts
    622
    Thanks given
    67
    Thanks received
    215
    Rep Power
    271
    Null Pointer Exception:
    at palidino76.rs2.player.Player.dropStuff(Player.java :3526)

    I assume you killed someone, and your drop loot method has the possibility to null.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2011
    Age
    26
    Posts
    330
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    nope i just teleported and then it did that. How would i make pali stable?
    Reply With Quote  
     

  5. #5  
    Registered Member
    AndyJay's Avatar
    Join Date
    Jun 2008
    Posts
    1,285
    Thanks given
    38
    Thanks received
    48
    Rep Power
    84
    On line 3526 in Player.java you need to make it check for nulls. I don't know what it will be as I aint psychic but it's probably something like if(p == null) return;


    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Aug 2011
    Age
    26
    Posts
    330
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    Quote Originally Posted by AndyJay View Post
    On line 3526 in Player.java you need to make it check for nulls. I don't know what it will be as I aint psychic but it's probably something like if(p == null) return;
    I tried that and i get an error saying it doesnt recognize variable p
    Reply With Quote  
     

  7. #7  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,612
    Thanks given
    799
    Thanks received
    494
    Rep Power
    540
    Is this bad??
    well its definetly not good lol

    ot: post the code
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Aug 2011
    Age
    26
    Posts
    330
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    sorry for bumping but i really need a solution to fix the error!
    Reply With Quote  
     

  9. #9  
    Registered Member .php's Avatar
    Join Date
    Mar 2010
    Posts
    546
    Thanks given
    24
    Thanks received
    36
    Rep Power
    17
    post the codes involved in the error please.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Emily's Avatar
    Join Date
    Jul 2010
    Age
    30
    Posts
    622
    Thanks given
    67
    Thanks received
    215
    Rep Power
    271
    Quote Originally Posted by flamehair9 View Post
    I tried that and i get an error saying it doesnt recognize variable p
    Do you even really understand the basics of programming.

    if(p == null)
    return;

    if ( p

    what ever P is, which in this case is PLAYER, and if it's in the PLAYER class, that means you can use THIS so.

    if(this == null)
    return;

    I don't even know what your true problem is, I outlined it in my original post but you obviously skipped over one of the more educated responses to your question.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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
  •