# NullReferenceException in 'Web Service' action

**URL:** https://www.finalbuilder.com/forums/t/nullreferenceexception-in-web-service-action/6913
**Category:** Bugs
**Created:** [November 9, 2020, 10:54am UTC](https://www.finalbuilder.com/forums/t/nullreferenceexception-in-web-service-action/6913 "2020-11-09T10:54:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![msanz](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@msanz](https://www.finalbuilder.com/forums/u/msanz)
#### Post date: [November 9, 2020, 10:54am UTC](https://www.finalbuilder.com/forums/t/nullreferenceexception-in-web-service-action/6913/1 "2020-11-09T10:54:48Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [November 9, 2020, 12:01pm UTC](https://www.finalbuilder.com/forums/t/nullreferenceexception-in-web-service-action/6913/2 "2020-11-09T12:01:06Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![msanz](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@msanz](https://www.finalbuilder.com/forums/u/msanz)
#### Post date: [November 10, 2020, 10:51am UTC](https://www.finalbuilder.com/forums/t/nullreferenceexception-in-web-service-action/6913/3 "2020-11-10T10:51:10Z")

</div>

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