diff options
Diffstat (limited to 'src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs')
-rw-r--r-- | src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs b/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs index 743a0c36..09733c3b 100644 --- a/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs +++ b/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs @@ -192,6 +192,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos { set { SetNamespace(value); } } public Builder SetNamespace(string value) { + pb::ThrowHelper.ThrowIfNull(value, "value"); result.hasNamespace = true; result.namespace_ = value; return this; @@ -210,6 +211,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos { set { SetUmbrellaClassname(value); } } public Builder SetUmbrellaClassname(string value) { + pb::ThrowHelper.ThrowIfNull(value, "value"); result.hasUmbrellaClassname = true; result.umbrellaClassname_ = value; return this; @@ -381,6 +383,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos { set { SetPropertyName(value); } } public Builder SetPropertyName(string value) { + pb::ThrowHelper.ThrowIfNull(value, "value"); result.hasPropertyName = true; result.propertyName_ = value; return this; |