Fatal error: Call to a member function is_type() woocommerce
<p>I am working on <code>Woocommerce</code> with <code>Wordpress V 4.5</code>. I am getting below error only for one product rest products are working fine.</p>

<blockquote>
  <p>Fatal error: Call to a member function is_type() on a non-object in
  /home/example/public_html/wp-content/themes/dss/woocommerce/cart/cart-item-data.php
  on line 35</p>
</blockquote>

<p><a href="https://i.stack.imgur.com/eOPtK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eOPtK.png" alt="enter image description here"></a></p>