From d18cc0845606c32e01e044ae5411c7053b1c73ec Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Thu, 30 Jul 2015 13:50:02 +0100 Subject: Generated code for previous commit. --- csharp/src/Google.Protobuf/WellKnownTypes/Type.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/Type.cs') diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs b/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs index 91ac0f6b..64142934 100644 --- a/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs +++ b/csharp/src/Google.Protobuf/WellKnownTypes/Type.cs @@ -105,7 +105,7 @@ namespace Google.Protobuf.WellKnownTypes { public string Name { get { return name_; } set { - name_ = value ?? ""; + name_ = pb::Preconditions.CheckNotNull(value, "value"); } } @@ -327,7 +327,7 @@ namespace Google.Protobuf.WellKnownTypes { public string Name { get { return name_; } set { - name_ = value ?? ""; + name_ = pb::Preconditions.CheckNotNull(value, "value"); } } @@ -336,7 +336,7 @@ namespace Google.Protobuf.WellKnownTypes { public string TypeUrl { get { return typeUrl_; } set { - typeUrl_ = value ?? ""; + typeUrl_ = pb::Preconditions.CheckNotNull(value, "value"); } } @@ -610,7 +610,7 @@ namespace Google.Protobuf.WellKnownTypes { public string Name { get { return name_; } set { - name_ = value ?? ""; + name_ = pb::Preconditions.CheckNotNull(value, "value"); } } @@ -783,7 +783,7 @@ namespace Google.Protobuf.WellKnownTypes { public string Name { get { return name_; } set { - name_ = value ?? ""; + name_ = pb::Preconditions.CheckNotNull(value, "value"); } } @@ -932,7 +932,7 @@ namespace Google.Protobuf.WellKnownTypes { public string Name { get { return name_; } set { - name_ = value ?? ""; + name_ = pb::Preconditions.CheckNotNull(value, "value"); } } -- cgit v1.2.3