NoMethodError in ShelfController#category

undefined method `listtype=' for nil:NilClass

Extracted source (around line #554):
552
553
554
555
556
557
              
shelf = getshelf
# logger.debug "Category: shelf=#{shelf}"
shelf.listtype = params[:list]
categories = Set.new
shelf.entries.each { |entry|

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"list"=>"image", "shelfname"=>"%E9%A3%9B%E7%84%94"}

Response

Headers:

None