2nd stab at that prim loading nasty

This commit is contained in:
Melanie Thielker
2008-10-11 16:32:31 +00:00
parent 625c67de54
commit 44b2ecf29d
2 changed files with 7 additions and 4 deletions

View File

@@ -249,7 +249,7 @@ namespace OpenSim.Region.Environment.Scenes
/// </returns>
protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup)
{
if (sceneObject.RootPart == null)
if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == null)
return false;
sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim);