Thread: Fix : 474 Null Pointer

Results 1 to 8 of 8
  1. #1 Fix : 474 Null Pointer 
    Diljot
    Guest
    Add :
    Code:
     npcHandler = new NPCHandler();
    after
    Code:
    playerHandler = new PlayerHandler();
    In server.java.

    Not really a tutorial so don't really care if it gets locked.
     

  2. #2  
    Community Veteran


    Join Date
    Jun 2007
    Posts
    1,684
    Thanks given
    300
    Thanks received
    309
    Rep Power
    481
    EDIT: Where is server.java?
    [Only registered and activated users can see links. ]
     

  3. #3  
    Registered Member
    Join Date
    Nov 2007
    Age
    27
    Posts
    517
    Thanks given
    1
    Thanks received
    3
    Rep Power
    73
    Quote Originally Posted by russiandude212 View Post
    EDIT: Where is server.java?


    In your source folders...
    Spoiler for Show GIFs:

     

  4. #4  
    Registered Member

    Join Date
    Feb 2007
    Age
    25
    Posts
    6,415
    Thanks given
    354
    Thanks received
    323
    Rep Power
    5000
    what a null pointer

    sorry for being such a noob
    [Only registered and activated users can see links. ]

    Menacescape - Runescape Private server
    Come to Menacescape. We've been online for over two years with an active community!
     

  5. #5  
    Diljot
    Guest
    Quote Originally Posted by Im An Angel View Post
    what a null pointer

    sorry for being such a noob
    It's when you try to use something that is null. Like if a player is off line and you try to use that player's playerId you will get a null pointer exception. To fix it you basically have to initialize the null object.
     

  6. #6  
    Extreme Donator


    Join Date
    Nov 2007
    Posts
    2,712
    Thanks given
    47
    Thanks received
    9
    Discord
    View profile
    Rep Power
    650
    Chani thank you for this. Sorry you gotta deal with idiots. Rep++
     

  7. #7  
    Diljot
    Guest
    Haha thanks , my idiot of the day Kyye.
     

  8. #8  
    Old School Member

    Join Date
    Feb 2008
    Age
    26
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    Quote Originally Posted by russiandude212 View Post
    EDIT: Where is server.java?
    Lmafo? (mts)

    Quote Originally Posted by Colby View Post
    Rofl, moron. They're ALL going to be null idiot. This is such complete bullshit, it makes me want to strangle you.
     


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
  •