Something wrong with the div

 <div id= "cart"

line 16----> <% if @cart.items.empty? %>
style=“display: none”
<% end %>

<%= hidden_div_if(@cart.items.empty?, :id => “cart”) %>

Whenever i press on checkout it says…You have a nil object when you
didn’t expect it!
The error occured while evaluating nil.items,

Extracted source (around line #16):