Thread: huge error z525

Results 1 to 7 of 7
  1. #1 huge error z525 
    Registered Member
    Join Date
    Sep 2010
    Posts
    55
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    its not an error in the compiling but i saw when a person does something i think like hits an npc the whole server gets shut off till i restart it here is wat it said
    Code:
    exception in thread "thread-0" java.lang.NullPointerException
     at net.com.codeusa.combat.Playerombat.getMeleeMaxhit(PlayerCombat
    .java:1204)
     at net.com.codeusa.model.combat.PlayerCombat.appendNpcDamageMelee(player
    combat.java:2182) 
    at net.com.codeusa.model.Player.process(player.java:2036) 
    at net.com.codeusa.engine.run(engine.java:212)
     at java.lang.thread.run(thread.java:619)
    Reply With Quote  
     

  2. #2  
    Registered Member
    AndyJay's Avatar
    Join Date
    Jun 2008
    Posts
    1,285
    Thanks given
    38
    Thanks received
    48
    Rep Power
    84
    Go to line 2104 in PlayCombat and add a null checker. It's usually something like

    if(p == null) return; should fix it if you place it at the start of the method


    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2010
    Posts
    55
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    its alredy there but the dc still hapens, thx for helping though=]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Sep 2010
    Posts
    55
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    bump
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2010
    Posts
    55
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    bump
    Reply With Quote  
     

  6. #6  
    Registered Member
    AndyJay's Avatar
    Join Date
    Jun 2008
    Posts
    1,285
    Thanks given
    38
    Thanks received
    48
    Rep Power
    84
    Your only supposed to bump once every 24 hours. Read the error, you need to make it check for nulls for EVERYTHING handled and it will fix it.


    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2010
    Posts
    55
    Thanks given
    0
    Thanks received
    2
    Rep Power
    1
    didnt work, and its only when ppl use prayers it dcs
    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
  •