3 added 71 characters in body
source | link

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

It may be worth doing the same check for item.EmbeddedSchemaName.

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

This is in contrast to Dreamweaver templating, where you could expect an empty string in return for an empty Component field.

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

This is in contrast to Dreamweaver templating, where you could expect an empty string in return for an empty Component field.

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

It may be worth doing the same check for item.EmbeddedSchemaName.

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

This is in contrast to Dreamweaver templating, where you could expect an empty string in return for an empty Component field.

2 Added detail.
source | link

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

This is in contrast to Dreamweaver templating, where you could expect an empty string in return for an empty Component field.

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.

This is in contrast to Dreamweaver templating, where you could expect an empty string in return for an empty Component field.

1
source | link

Ensure that item.EmbeddedSchemaName.EmbeddedSchemaFieldName is non-null for each item:

@foreach(dynamic item in List)
{
    if (item.EmbeddedSchemaName.EmbeddedSchemaFieldName != null)
    {
        @item.EmbeddedSchemaName.EmbeddedSchemaFieldName 
    }
}

From the Razor Mediator documentation:

The DynamicItemFields class will return null if no property name exists in the ItemFields, or if no value was input for single-valued fields.