ParcelObjectOwnersReplyPacket has null DataBlock when a client requests a list of their prims in the region and none exist. Instead of leaving pack.Data null, this patch sets a new DataBlock[0];

This commit is contained in:
Dan Lake
2009-10-26 13:41:20 -07:00
committed by John Hurliman
parent ff4b45a1e3
commit ad624f703d

View File

@@ -4158,6 +4158,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
pack.Data = dataBlock;
}
else
{
pack.Data = new ParcelObjectOwnersReplyPacket.DataBlock[0];
}
pack.Header.Zerocoded = true;
this.OutPacket(pack, ThrottleOutPacketType.Task);
}