diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs index 979df59..86ddfaf 100644 --- a/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs +++ b/OpenSim/Region/Environment/Modules/AvatarFactoryModule.cs | |||
@@ -55,7 +55,14 @@ namespace OpenSim.Region.Environment.Modules | |||
55 | byte[] visualParams; | 55 | byte[] visualParams; |
56 | GetDefaultAvatarAppearance(out wearables, out visualParams); | 56 | GetDefaultAvatarAppearance(out wearables, out visualParams); |
57 | appearance = new AvatarAppearance(avatarId, wearables, visualParams); | 57 | appearance = new AvatarAppearance(avatarId, wearables, visualParams); |
58 | m_avatarsAppearance[avatarId] = appearance; | 58 | try |
59 | { | ||
60 | m_avatarsAppearance[avatarId] = appearance; | ||
61 | } | ||
62 | catch (System.NullReferenceException) | ||
63 | { | ||
64 | OpenSim.Framework.Console.MainLog.Instance.Error("AVATAR", "Unable to load appearance for uninitialized avatar"); | ||
65 | } | ||
59 | return true; | 66 | return true; |
60 | } | 67 | } |
61 | } | 68 | } |