Fix details retreiving for metacontact.

cusax-fix
Damian Minkov 18 years ago
parent b5247b3e03
commit de3c4f5d51

@ -400,7 +400,7 @@ private void storeContactList0() throws IOException
} catch (IllegalStateException e) {
logger.error("the contactlist file is missing", e);
}
// really write the modification
OutputStream stream = new FileOutputStream(contactlistFile);
XMLUtils.indentedWriteXML(contactListDocument,
@ -413,8 +413,8 @@ private void storeContactList0() throws IOException
} catch (IllegalStateException e) {
logger.error("the contactlist file is missing", e);
}
}
}
}
}
/**
* Launches a separate thread that waits on the contact list rw lock and
@ -795,16 +795,13 @@ private void processGroupXmlNode(
Object detailsObj = details.get(name);
if(detailsObj == null)
details.put(name, value);
else if(detailsObj instanceof List)
((List)detailsObj).add(value);
else if(detailsObj instanceof String)
{
{
ArrayList ds = new ArrayList();
ds.add(detailsObj);
ds.add(value);
details.put(name, ds);
}
else
((List)detailsObj).add(value);
}
}
catch(Exception ex)
@ -1206,7 +1203,7 @@ public void metaContactAdded(MetaContactEvent evt)
* @param evt the MetaContactListEvent containing the corresponding contact
*/
public void metaContactGroupAdded(MetaContactGroupEvent evt)
{
{
//if the group was created as an encapsulator of a non persistent proto
//group then we'll ignore it.
if (evt.getSourceProtoGroup() != null

Loading…
Cancel
Save