xmlrpc icon indicating copy to clipboard operation
xmlrpc copied to clipboard

NullReferenceException when adding a null entry to the struct

Open lorddev opened this issue 6 years ago • 2 comments

 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 avatar Sep 07 '18 17:09 lorddev

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

lorddev avatar Sep 07 '18 17:09 lorddev

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.

LordVeovis avatar Sep 10 '18 06:09 LordVeovis