Commit 075e0897 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Minor fix.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1187 b35dd754-fafc-0310-a699-88a17e54d16e
parent ace7a460
......@@ -91,7 +91,7 @@ public class IQvCardHandler extends IQHandler {
Element vcard = DocumentHelper.createElement(QName.get("vCard", "vcard-temp"));
result.setChildElement(vcard);
// Only try to get the vCard values of non-anonymous users
if (recipient.getNode() != null) {
if (recipient != null && recipient.getNode() != null) {
User user = userManager.getUser(recipient.getNode());
VCardManager vManager = VCardManager.getInstance();
Collection<String> names = vManager.getVCardPropertyNames(user.getUsername());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment