We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc69a6e commit d057fb0Copy full SHA for d057fb0
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