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"=>"%E5%AD%A6%E8%8A%B8%E5%A4%A7-%E6%83%85%E5%A0%B1%E6%95%99%E8%82%B2%E6%8E%88%E6%A5%AD%E9%81%8B%E5%96%B6%E5%A7%94%E5%93%A1%E4%BC%9A"}

Response

Headers:

None