In a DD4T View I am trying to pick the value of Path of the keyword inside the Category.
foreach(var category in @Model.Categories)
{
if (category.Title.Contains("Taxonomy"))
{
str = category.Keywords[0].Path;
break;
}
}
but getting null in @Model.Categories.
Error: Object reference not set to instance of the object.
Although data exist in XML.
Please suggest.