NoMethodError in Product#get

Showing /var/www/admin/www/bellamarket.ru/current/app/views/product/get.html.haml where line #282 raised:

undefined method `name' for nil:NilClass

Extracted source (around line #282):

279:               .name= p.name
280:         .clear
281:     .product-text
282:       %h2= @product.cats.first.name
283:       .text=raw @product.cats.first.full_description

Rails.root: /var/www/admin/www/bellamarket.ru/current

Application Trace | Framework Trace | Full Trace
app/views/product/get.html.haml:282:in `_app_views_product_get_html_haml__2725656183785691966_44825480'

Request

Parameters:

{"category"=>"demisez",
 "url"=>"m-18-46"}

Show session dump

Show env dump

Response

Headers:

None