Skip to content

Nulls returned for varybyculture fields #14997

@smarshallsay

Description

@smarshallsay

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

12.2.0

Bug summary

Null instead of actual value being returned on varybyculture fields

Specifics

One of our websites has many cultures. If I upgrade that website past 11.2.2 (even the very next version 11.3.0) then I get null reference exceptions when I try to access certain values whether or not they have a value set.
In my case the first erroring value is a bool (true/false) set on a page inherited from a composition

image

image

although the values are returned in the non-public members _content

Steps to reproduce

I'll try not to be too confusing here but this is on a page that inherits 'modules' data type from a base composition which is varybyculture nested content which allows certain modules that also inherit from a base module composition type that receive these fields such as 'fullbleed' etc

The website was originally created on umbraco 9 beta but has been steadily upgraded through almost every version in its lifetime until we hit this version and started receiving these null reference errors.

Expected result / actual result

Expected: Value saved in CMS to be returned

Actual: Null reference exception


This item has been added to our backlog AB#34580

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions