Thread: NullPointerException, please help. Not sure.

Results 1 to 7 of 7
  1. #1 NullPointerException, please help. Not sure. 
    Eric
    Guest
    Code:
    java.lang.NullPointerException
            at com.rs.game.player.Player.getMessageIcon(Player.java:1418)
            at com.rs.net.encoders.WorldPacketsEncoder.sendPublicMessage(WorldPacketsEncoder.java:840)
            at com.rs.game.player.Player.sendPublicChatMessage(Player.java:3041)
            at com.rs.net.decoders.WorldPacketsDecoder.processPackets(WorldPacketsDecoder.java:1445)
            at com.rs.net.decoders.WorldPacketsDecoder.decode(WorldPacketsDecoder.java:273)
            at com.rs.net.ServerChannelHandler.messageReceived(ServerChannelHandler.java:94)
            at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
            at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
            at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
            at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
            at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
            at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
            at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
            at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
            at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)

    Any help would be great. Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    And what's: at com.rs.game.player.Player.getMessageIcon(Player.ja va:1418)
    Reply With Quote  
     

  3. #3  
    Eric
    Guest
    switch (membership) {
    Reply With Quote  
     

  4. #4  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    add && blabla !=null, if you need further help add me on skype

    forgot my skype i69withyou add me
    Last edited by cube; 10-20-2014 at 07:15 PM. Reason: edit your posts...
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Quote Originally Posted by Eric View Post
    switch (membership) {
    Post the full method..
    Reply With Quote  
     

  6. #6  
    Eric
    Guest
    Quote Originally Posted by J-dog View Post
    add && blabla !=null, if you need further help add me on skype
    what do you mean by that.
    Reply With Quote  
     

  7. #7  
    ⚓Manic-Owner⚓


    Join Date
    Nov 2007
    Posts
    2,711
    Thanks given
    47
    Thanks received
    9
    Rep Power
    650
    Quote Originally Posted by Eric View Post
    what do you mean by that.
    this will stop the nullpointerexception cuz it makes sure its not equal to null
    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

Similar Threads

  1. github help (not sure where this goes)
    By owner proto in forum Application Development
    Replies: 4
    Last Post: 04-17-2013, 01:16 PM
  2. Internet Help/Not sure?
    By C00l Kid in forum Hardware
    Replies: 10
    Last Post: 01-11-2013, 04:12 PM
  3. Help NOT SURE IF IS CLIENT OR SERVER
    By omnee in forum Help
    Replies: 9
    Last Post: 10-20-2011, 06:13 PM
  4. Help NOT SURE IF IS CLIENT OR SERVER
    By omnee in forum Help
    Replies: 0
    Last Post: 10-19-2011, 04:26 PM
  5. Help.. Not sure how to do this will rep
    By arr0wtohell in forum Help
    Replies: 2
    Last Post: 05-10-2009, 06:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •