Unhandled Error!

Trying to get property of non-object

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

Code Highlight

<div class="product">
        <?= open_form(array('data-ls-event'=>'shop:on_addToCart', 'data-ls-update'=>'shop_product, mini_cart', 'class' => 'nice')) ?>
                <div class="flash"><?= flash() ?></div>
                <h1><?= h($product->name) ?></h1>
                <? if (count($product->images)): ?>
                        <div class="panel image-slider"><div class="cf">
                                <? foreach ($product->images as $image): ?>
                                        <a href="<?= $image->getThumbnailPath(800, 'auto') ?>" rel="colorbox" class="large-image">
                                                <img src="<?= $image->getThumbnailPath(100, 'auto') ?>">
                                        </a>
                                <? endforeach ?>
                        </div></div>
                <? endif ?>
# Document Type
2 shop:product CMS partial
1 Product CMS page