Help with character stuck on character screen screen

Results 1 to 3 of 3
  1. #1
    Member crayonfite is offline
    MemberRank
    Apr 2014 Join Date
    30Posts

    Help with character stuck on character screen screen

    Hello,

    After I have clicked on my character to go into game, after entering the pic, the character runs and nothing happens. I checked my log and it gives this

    Code:
    java.lang.NullPointerException	at tools.packet.PacketHelper.addInnerStats(PacketHelper.java:700)
    	at tools.packet.PacketHelper.addCharacterInfo(PacketHelper.java:679)
    	at tools.packet.CField.getCharInfo(CField.java:347)
    	at handling.channel.handler.InterServerHandler.Loggedin(InterServerHandler.java:202)
    	at handling.MapleServerHandler.handlePacket(MapleServerHandler.java:625)
    	at handling.MapleServerHandler.messageReceived(MapleServerHandler.java:458)
    	at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)
    	at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
    	at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
    	at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
    	at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimpleProtocolDecoderOutput.java:58)
    	at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:180)
    	at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)
    	at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)
    	at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)
    	at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)
    	at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
    	at java.lang.Thread.run(Unknown Source)
    addInnerStats line 700 is mplew.writeShort(Skills.size());

    Any help would be appreciated :) server is 117.2 and source has a moderate amount of judoms files.

    - - - Updated - - -

    Nevermind! I solved it myself :) only a temporary fix until i find a solution for this though.. If anyone would like to explain what happened there to me it'll also be appreciated, if not the thread can be closed.


  2. #2
    Elite Member ALotOfPosts is offline
    Member +Rank
    Sep 2014 Join Date
    181Posts

    Re: Help with character stuck on character screen screen

    Knowing how to read the exception is a good start.

    Now you have to know what the exception is caused from. It says it's a NullPointerException, which means something is being dereferenced that doesn't exist. This is like:
    Object o = null; // new object
    o.toString(); // this will give an exception because o is "null" and you are trying to call toString for something that "doesn't exist"

    So basically in this case skills is probably null. Skills looks like it's a list of some sort. Make sure the list is initialized and that the inner abilities have been added.

  3. #3
    Member crayonfite is offline
    MemberRank
    Apr 2014 Join Date
    30Posts

    Re: Help with character stuck on character screen screen

    Quote Originally Posted by ALotOfPosts View Post
    Knowing how to read the exception is a good start.

    Now you have to know what the exception is caused from. It says it's a NullPointerException, which means something is being dereferenced that doesn't exist. This is like:
    Object o = null; // new object
    o.toString(); // this will give an exception because o is "null" and you are trying to call toString for something that "doesn't exist"

    So basically in this case skills is probably null. Skills looks like it's a list of some sort. Make sure the list is initialized and that the inner abilities have been added.
    I see! Thanks for the explanation :)



Advertisement