Fix loading of attachments on login

avinationmerge
Melanie Thielker 2010-06-26 06:16:24 +02:00
parent dc9e9931eb
commit 6274317e63
1 changed files with 8 additions and 1 deletions

View File

@ -4151,7 +4151,14 @@ Console.WriteLine("Scripted Sit ofset {0}", m_pos);
{
m_log.DebugFormat("[ATTACHMENT]: Loading attachment data from attachment service");
stateData = attServ.Get(ControllingClient.AgentId.ToString());
doc.LoadXml(stateData);
if (stateData != String.Empty)
{
try
{
doc.LoadXml(stateData);
}
catch { }
}
}
Dictionary<UUID, string> itemData = new Dictionary<UUID, string>();