Closed wvankesteren-ax closed 8 months ago
I had a bit of trouble replicating the exception, as it seems if I just manipulate the database field containing the definition of a prevalue in a form to have a null value, the serialization from the stored definition fails. But in any case, I can certainly see that it would be useful to program more defensively here, so I've added this null check which will be included in the next patch release for Forms 8.
many thanx!
A brief description of the issue goes here.
We have an Umbraco Forms v7.0.7 form that has been converted to Umbraco Forms v8.18.12 where a list of prevalues contains a null value. This prevents the form to be loaded correctly.
Reproduction
Since this is a converted form we have no easy steps to reproduce, however the fix could be very easy.
There will be a NPE on line 94 in function ParsePrevalueStoredWithSeparator() in field.cs (Umbraco.Forms.Core.Models.Field):
this can easily fixed by changing this line into
bottomline: a form should always be able to open in edit mode in order to correct it!
Since this customer project is Umbraco Forms v8, please port the fix to Umbraco Forms v8.
This is mandatory to serve your customers at the best!
This item has been added to our backlog AB#36739