NullReferenceException in 'Web Service' action

When calling a method that returns an array of arrays, if any of the elements of the array is NULL a NullReferenceException is thrown.

Stacktrace below:

Error executing Action : System.NullReferenceException: Object reference not set to an instance of an object.
at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.BaseAction.LogArrayItems(ICustomActionExecuteContext Context, String method, Object arrayItem)
at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.BaseAction.LogArrayItems(ICustomActionExecuteContext Context, String method, Object arrayItem)
at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.WebServiceAction.OnExecute(ICustomActionExecuteContext Context)
Source : FBWebServices
StackTrace : at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.BaseAction.LogArrayItems(ICustomActionExecuteContext Context, String method, Object arrayItem)
at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.BaseAction.LogArrayItems(ICustomActionExecuteContext Context, String method, Object arrayItem)
at VSoft.WebServices.BaseAction.LogReturnedValue(ICustomActionExecuteContext Context, String method, Object returnValue)
at VSoft.WebServices.WebServiceAction.OnExecute(ICustomActionExecuteContext Context)

FB version 8.0.0.2936

Hi Marco

This is kinda of a known problem, I looked at this a few weeks ago. The issue is that the actions do not know how to handle complex types. The main reason for this is that FinalBuilder does not have a user defined complex type to store data in. This is something we are looking into for a future version.

Hi Vincent,
Thanks for the quick response, we’ll wait for a solution then. Good luck with it.
Best regards