Consume value from a session result in a null reference exception - SharePoint Customization - SharePoint for All - Dell Community

Consume value from a session result in a null reference exception

Consume value from a session result in a null reference exception

  • I'm using Quick Apps 6.4 (Build 2014.11.20).  I have three lists that we'll call A, B, and C.

    A has a lookup to C, and B also has a lookup to C.  The lookup fields do not require a value to be set in either list.  I have a page in Sharepoint using a qListForm which is successfully updating A, and updating the lookup in B as well via Dependent lists.  This works whether A has a value set for the lookup field or not.

    I'm trying to create a qListForm to create a new item in B, and I want to set the lookup field from a session value storing an A item.  In my display fields setup I'm choosing the lookup field in B to be of field type "Consume value from a session".  If the A item has a value for the lookup, everything works fine.  However, if the A item does not have a value for the lookup field, then I get an error: "The following error occurred: Object reference not set to an instance of an object."

    I'm looking for any workaround without having to make my lookup field a required field.

  • Hi there,

     

    I am sorry, I cannot find the workaround with this issue. I have logged this bug for the team, the ID is #462413.

     

    Kenny.

  • Is this something that will be addressed in 6.5?

  • Hi Travis,

     

    That will be addressed in the release note if it is fixed.

     

    Kenny.