Sorry, an error occurred loading the page (500)

/home/stephen_ward1994/mid-south-feeds/mid-southfeeds/templates/views/product.pug:11
9| .col-md-10.col-sm-10
10| ol.breadcrumb(style="margin-bottom: 0px; font-size: 14px;")
> 11| li: a(href="/" + product.categories[0].name)= product.categories[0].name
12| li: a(href="/" + product.categories[0].name + "/" + encodeURI(product.categories[1].name))= product.categories[1].name
13| li.active= product.name
14| .col-md-2.col-sm-2(style="text-align: right;")

Cannot read property 'categories' of null