[jitsi-dev] Issue Report: NullPointer while adding new ICQ contact


#1

Hello,

I got a NullPointerException while adding a new ICQ contact to my empty (no
contacts, no groups) contact list.
In the "Add Contact"-Wizard, I chose "Select Group: No Group".

net.java.sip.communicator.service.contactlist.MetaContactListException:
failed to create contact xxxxxxxxx
    at
net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.addNewContactToMetaContact(MetaContactListServiceImpl.java:437)
    at
net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.createMetaContact(MetaContactListServiceImpl.java:685)
    at
net.java.sip.communicator.impl.gui.main.contactlist.ContactListUtils$1.run(ContactListUtils.java:33)
Caused by: java.lang.NullPointerException
    at
net.java.sip.communicator.impl.protocol.icq.ServerStoredContactListIcqImpl.addContact(ServerStoredContactListIcqImpl.java:629)
    at
net.java.sip.communicator.impl.protocol.icq.ServerStoredContactListIcqImpl.addContact(ServerStoredContactListIcqImpl.java:484)
    at
net.java.sip.communicator.impl.protocol.icq.OperationSetPersistentPresenceIcqImpl.subscribe(OperationSetPersistentPresenceIcqImpl.java:356)
    at
net.java.sip.communicator.impl.contactlist.MetaContactListServiceImpl.addNewContactToMetaContact(MetaContactListServiceImpl.java:403)
    ... 2 more

Maybe the contact should be added to a default group if parent is null in
ServerStoredContactListIcqImpl.java:482 (addContact(screenname))?
I would like to fix this issue.

kr,
Andreas