Unhandled Error!

Trying to get property of non-object

Document shop:product
Document type CMS partial
Line 653
Exception class Cms_ExecutionException

Code Highlight

                                </div><!-- /.accordion-heading -->
                                <div id="collapseResources" class="panel-collapse collapse accordion-collapse" role="tabpanel" aria-labelledby="resources">
                                    <div class="panel-body accordion-body">
                                        <div class="accordion-resources">
                                            <h4 class="h2 pb-40 my-0 hidden-xs">Downloads</h4>
                                            <? $this->render_partial('shop:product_related_resources', array('category_name' => $product->categories[0]->name)); ?>
                                        </div><!-- /.accordion-long-description -->
                                    </div><!-- /.accordion-body -->
                                </div><!-- /.accordion-collapse -->
                            </div><!-- /.accordion-default -->
                        <? endif; ?>
# Document Type
2 shop:product CMS partial
1 LED200D MKII Daylight Balanced LED Studio Light Three Head Kit with Case (Improved Colour) CMS page