From 03672c35e46582adc77fdcf9bf6863ff41490ba7 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 10 Sep 2008 03:27:09 +0000 Subject: Thank you kindly, CMickeyB for a patch that adds a couple of debug statements for null items while we diagnose our interrmittent inventory issues. I looked at this and it seems helpful to others. We can back it later if desired. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 1a4b0c9..2c8a796 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -2906,11 +2906,25 @@ namespace OpenSim.Region.Environment.Scenes private void ItemReceived(UUID itemID) { + //MIC: DEBUG + if (null == itemID) + { + m_log.Error("ItemReceived passed null itemID"); + return; + } + int attachpoint = m_appearance.GetAttachpoint(itemID); if (attachpoint == 0) return; UUID asset = m_appearance.GetAttachedAsset(attachpoint); + //MIC: DEBUG + if (null == asset) + { + m_log.ErrorFormat("[ATTACHMENT] Unable to locate attached asset for item {0}", itemID.ToString()); + return; + } + if (asset == UUID.Zero) // We have just logged in { m_log.InfoFormat("[ATTACHMENT] Rez attachment {0}", -- cgit v1.1