LordVeovis / xmlrpc

A port of CookComputing.XmlRpcV2 for dotnet core 2
MIT License
33 stars 21 forks source link

NullReferenceException when adding a null entry to the struct #6

Open lorddev opened 6 years ago

lorddev commented 6 years ago
 Traceback (most recent call last):
1
at System.Object.GetType() in "System.Object" line 0
2
at CookComputing.XmlRpc.XmlRpcStruct.Add(System.Object key, System.Object value) in "CookComputing.XmlRpc.XmlRpcStruct" line 19
...
System.NullReferenceException: Object reference not set to an instance of an object.

When I use the Cook Computing NuGet package I don't get this error. Of course, we can't use that if we want a cross-platform application :-(

lorddev commented 6 years ago

As far as I can tell, this issue occurs because XmlRpcStruct was modified from the original Cook Computing source code to use a HashTable instead of a dictionary.

2018-09-07

LordVeovis commented 6 years ago

This fork is based on XmlRPC v2.5, not v3 as Cook never marked it stable. I will take a look this week-end.

Thanks for the diff.