U4-10996 - RTE return everytime null when empty

Created by Biagio Paruolo 20 Feb 2018, 19:42:31 Updated by Biagio Paruolo 20 Feb 2018, 19:45:58

I tried various test to check if RTE is null or not but any works. In the past this not happend.

Everytime I've error: Exception Details: System.ArgumentNullException: Value cannot be null. Parameter name: child

Check: if ((!Model.Content.IsNull("bodyTextRichEditor")) && Model.Content.HasValue("bodyTextRichEditor")){ @Umbraco.Field("bodyTextRichEditor") } or

var html = Model.Content.GetPropertyValue("bodyTextRichEditor"); if (html != null && !String.IsNullOrEmpty(html.ToString()) {

@html
}

Thanks.

Comments

Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.7.6

Due in version:

Sprint:

Story Points:

Cycle: