Guard against a null ref that can prevent objects from being persisted

0.6.0-stable
Melanie Thielker 2008-10-18 15:23:29 +00:00
parent c3ba97c80a
commit 48890ea349
1 changed files with 2 additions and 1 deletions

View File

@ -1163,7 +1163,8 @@ namespace OpenSim.Region.Environment.Scenes
ILandObject parcel = m_scene.LandChannel.GetLandObject(
m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y);
if (parcel.landData.OtherCleanTime != 0)
if (parcel != null && parcel.landData != null &&
parcel.landData.OtherCleanTime != 0)
{
if (parcel.landData.OwnerID != OwnerID &&
(parcel.landData.GroupID != GroupID ||