Unhandled Error!

Trying to get property of non-object

Document blog:post
Document type CMS partial
Line 2
Exception class Cms_ExecutionException

Code Highlight

<div class="post gBorder">
	<? if($post->featuredimages[1]): ?>
		<div class="featured-image" style="height:280px; background-image:url(<?= $post->featuredimages[1]->getThumbnailPath('auto', 'auto', false); ?>);">
			<p class="date"><?= $post->published_date->format('%e %b'); ?></p>
		</div>
	<? else: ?>
		<div class="featured-image" style="height:280px; background:#ccc url(/themes/id30ecommerce/resources/img/camera.png) no-repeat center center;">
			<p class="date"><?= $post->published_date->format('%e %b'); ?></p>
		</div>
	<? endif;?>
	<div class="postbody">
		<h1><?= h($post->title); ?></h1>
		<div class="categories">
# Document Type
2 blog:post CMS partial
1 Blog Post CMS page