Use new string instance in copy method
authorThomas
Thu, 01 Mar 2018 10:07:49 +0100
changeset 202516d165ee211e
parent 2024 2b6921290607
child 2026 7fd3cf4ac21b
Use new string instance in copy method
PEPMessage.cs
     1.1 --- a/PEPMessage.cs	Wed Feb 28 16:55:04 2018 +0100
     1.2 +++ b/PEPMessage.cs	Thu Mar 01 10:07:49 2018 +0100
     1.3 @@ -1182,7 +1182,7 @@
     1.4              copy.ConversationTopic = (this._ConversationTopic == null ? null : string.Copy(this._ConversationTopic));
     1.5              copy.Direction = this._Direction;
     1.6              copy.EnableProtection = this._EnableProtection;
     1.7 -            copy.ForceProtectionId = this._ForceProtectionId;
     1.8 +            copy.ForceProtectionId = (this._ForceProtectionId == null ? null : string.Copy(this._ForceProtectionId));
     1.9              copy.ForceUnencrypted = this._ForceUnencrypted;
    1.10              copy.From = (this._From == null ? null : this._From.Copy());
    1.11              copy.Id = (this._Id == null ? null : string.Copy(this._Id));