From 0f181fe5d05e24886586e5882f4f6fe60c1dc30d Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 30 Jan 2012 22:30:02 +0100 Subject: Fix displaying landmark and search info properly with long names --- OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index a50a61d..4f09d8f 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -2766,7 +2766,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP reply.Data.ParcelID = parcelID; reply.Data.OwnerID = land.OwnerID; reply.Data.Name = Utils.StringToBytes(land.Name); - reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length)); + if (land != null && land.Description != null && land.Description != String.Empty) + reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length)); + else + reply.Data.Desc = new Byte[0]; reply.Data.ActualArea = land.Area; reply.Data.BillableArea = land.Area; // TODO: what is this? -- cgit v1.1