Unhandled Error!

Trying to get property of non-object

Document shop:product:images
Document type CMS partial
Line 1
Exception class Cms_ExecutionException

Code Highlight

<? if ($product->images->count): ?>
 
		<div class="productImages">
	<?
		$large = $thumb = array();
		foreach ($product->images as $image) {
			$large[] = $image->getThumbnailPath(382, 432);
			$thumb[] = $image->getThumbnailPath(116, 116);
		}
	?>
          <div class="mainImage"><img src="<?= array_shift($large) ?>" rel="<?= array_shift($thumb) ?>" alt="<?= h($product->name) ?>"></div>
		<? if (count($large)): ?>
 
# Document Type
3 shop:product:images CMS partial
2 shop:product CMS partial
1 Product CMS page