Unhandled Error!

Trying to get property of non-object

Document Category
Document type CMS page
Line 2
Exception class Cms_ExecutionException

Code Highlight

<?php $this->render_partial('site:breadcrumbs'); ?>
<? $productscount = $category->products; ?>
 
<div class="container wide pagearea">
	<? if(!$category): ?>
		<section class="snippet">
			<div class="container narrow">
				<h2>Sorry, the specified category was not found.</h2>
			</div>
		</section>
		<? return ?>
	<? endif ?>
	<section class="snippet">
# Document Type
1 Category CMS page