AnsweredAssumed Answered

SubscriptionDialog.java - Getting nickname

Question asked by klel on Nov 25, 2009
Latest reply on Nov 26, 2009 by klel

Hi!

 

When a user adds another user the subscription request that is sent will pop-up with a nickname just containing the jabber id. (Running LDAP and AD-integrated). I would like to pick upp the Vcard nick-name and use it instead. I have been trying to get it to work by adding the code below, but i just causes the Subscription dialog to not appear... I would be very greatful if anyone could help me.

 

String nickname = SparkManager.getVCardManager().getVCard(jid).getNickName();


if ( nickname == null){
            nickname = "";
        }
      
nicknameField.setText(nickname);

 

Single stepping the code will abort as soon as it gets to the line where getVCard is involved..

 

I am not very experienced in writing java, but in C/C++ so it could just be lack of understanding....

 

Thanks!

Outcomes