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];

0.6.8-post-fixes
Dan Lake 2009-10-26 13:41:20 -07:00 committed by John Hurliman
parent ff4b45a1e3
commit ad624f703d
1 changed files with 4 additions and 0 deletions

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);
}