From e28e62bac587b2ac3bb911d4d35afe2e6f924fc7 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Sun, 31 Aug 2008 02:27:23 +0000 Subject: [PATCH] Defaulting four string values in Primitive.Properties to String.Empty instead of null in the Primitive() constructor git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2194 52acb1d6-8a22-11de-b505-999d5b087335 --- OpenMetaverse/Primitives/Primitive.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenMetaverse/Primitives/Primitive.cs b/OpenMetaverse/Primitives/Primitive.cs index da5e0e8e..7737ad40 100644 --- a/OpenMetaverse/Primitives/Primitive.cs +++ b/OpenMetaverse/Primitives/Primitive.cs @@ -1070,6 +1070,11 @@ namespace OpenMetaverse /// public Primitive() { + // Default a few null property values to String.Empty + Properties.Name = String.Empty; + Properties.Description = String.Empty; + Properties.TouchName = String.Empty; + Properties.SitName = String.Empty; } #endregion Constructors