Thread: [667] Nullpointer

Results 1 to 6 of 6
  1. #1 [667] Nullpointer 
    Registered Member
    Join Date
    Aug 2011
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hello people!

    I am trying to get the Pre-game Lobby (when you login) working again on my 667.

    It all went well, until I came across the last part, the test.

    This part:
    Code:
    	public int getMessageAmount() {
    		Integer messageAmount = (Integer) getTemporaryAttributtes().get(
    				"Message");
    		if (messageAmount == null)
    			return 0;
    		return messageAmount;
    	}
    gives me this error:


    If any of you can help me with this, please do so!

    ~ReflexNL
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    First of all, this is in the complete wrong section. But I'll still try to help since I'm nice and not only in the Help section for the post count.

    My best guess is that there is no entry in getTemporaryAttributes() that's named Message. Since it can't find Message, it's just returning null.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2011
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    RS2 Server > Help
    isn't this where all server related help goes?
    (the getMessageAmount is in the server's Player.java).

    and the attribute was already there, it was working fine too but since I enabled the lobby again it just went wrong ...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    Quote Originally Posted by ReflexNL View Post
    isn't this where all server related help goes?
    (the getMessageAmount is in the server's Player.java).

    and the attribute was already there, it was working fine too but since I enabled the lobby again it just went wrong ...
    This is for RS2 servers. 667 isn't RS2. This thread should go in the 508+ forum (RS 503+ Client & Server).
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2011
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    oh Sorry didn't know that
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2012
    Posts
    175
    Thanks given
    32
    Thanks received
    47
    Rep Power
    35
    Quote Originally Posted by ReflexNL View Post
    oh Sorry didn't know that
    It's all good. Next time you'll know.
    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. 667 Lobby Login Nullpointer
    By maffia-rpg in forum Help
    Replies: 5
    Last Post: 06-30-2012, 10:57 AM
  2. nullpointer
    By Wizard ebodA in forum Help
    Replies: 0
    Last Post: 12-19-2011, 09:57 PM
  3. [PI] Nullpointer?
    By Inenting in forum Help
    Replies: 5
    Last Post: 06-19-2011, 04:47 PM
  4. Nullpointer
    By Deathbyu in forum Help
    Replies: 2
    Last Post: 06-13-2011, 05:18 PM
  5. Nullpointer help
    By myK- in forum Help
    Replies: 1
    Last Post: 06-07-2011, 05:28 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •