We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc69a6e + d057fb0 commit be84015Copy full SHA for be84015
src/corelib/Core/Domain/ServerAddresses.cs
@@ -7,9 +7,9 @@ namespace net.openstack.Core.Domain
7
public class ServerAddresses : Dictionary<string, AddressDetails[]>
8
{
9
[IgnoreDataMember]
10
- public AddressDetails[] Private { get { return this["private"]; } }
+ public AddressDetails[] Private { get { return ContainsKey("private") ? this["private"] : null; } }
11
12
13
- public AddressDetails[] Public { get { return this["public"]; } }
+ public AddressDetails[] Public { get { return ContainsKey("public") ? this["public"] : null; } }
14
}
15
0 commit comments