mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Guard against a null ref that can prevent objects from being persisted
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user