From 7a52b35c574da5180131e1b5df613c4df09a5065 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 19 May 2008 20:33:54 +0000 Subject: fix crash in standalone mode for initial appearance setup --- OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Modules/AvatarFactory') diff --git a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs index 7dae702..837a4ec 100644 --- a/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/Modules/AvatarFactory/AvatarFactoryModule.cs @@ -60,7 +60,10 @@ namespace OpenSim.Region.Modules.AvatarFactory public bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance) { appearance = m_scene.CommsManager.UserService.GetUserAppearance(avatarId); - return true; + if (appearance != null) + return true; + else + return false; // //should only let one thread at a time do this part // EventWaitHandle waitHandle = null; -- cgit v1.1