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"=>"text", "shelfname"=>"%E2%98%86%E5%92%B2%E8%80%B6"}

Response

Headers:

None