Prevent a null root part from stopping objects from being persisted, also

remove any such objectsd from backup
0.6.0-stable
Melanie Thielker 2008-10-18 15:43:02 +00:00
parent 3a75a54da1
commit 1bd33aa51a
1 changed files with 7 additions and 0 deletions

View File

@ -1158,6 +1158,13 @@ namespace OpenSim.Region.Environment.Scenes
{
// Since this is the top of the section of call stack for backing up a particular scene object, don't let
// any exception propogate upwards.
if (RootPart == null || UUID == UUID.Zero)
{
DetachFromBackup();
return;
}
try
{
ILandObject parcel = m_scene.LandChannel.GetLandObject(