Project

General

Profile

Defect #295

NoMethodError (undefined method `hudson_job_id=' for nil:NilClass

Added by Toshiyuki Ando almost 10 years ago.

Status:
新規(New)
Priority:
通常(Normal)
Assignee:
-
Target version:
Start date:
02/11/2010
Due date:
02/12/2010
% Done:

0%

Estimated time:

Description

がおきるときがあります。
スタックトレースは以下のもの。

HudsonJob を new する際に HudsonJobSettings もついでに new しているのが
良くないんだと思います…。

1.0.2 では暫定対処を入れておきます。

NoMethodError (undefined method `hudson_job_id=' for nil:NilClass):
  vendor/plugins/redmine_hudson/app/models/hudson_job.rb:33:in `after_save'
  vendor/plugins/redmine_hudson/app/models/hudson.rb:87:in `fetch_jobs'
  /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
  /usr/lib/ruby/1.8/rexml/xpath.rb:53:in `each'
  /usr/lib/ruby/1.8/rexml/element.rb:892:in `each'
  vendor/plugins/redmine_hudson/app/models/hudson.rb:78:in `fetch_jobs'
  vendor/plugins/redmine_hudson/app/models/hudson.rb:26:in `fetch'
  vendor/plugins/redmine_hudson/app/controllers/hudson_controller.rb:28:in `index'
  /usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
  /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
  /usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
  /usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
  /usr/lib/ruby/1.8/mongrel.rb:158:in `each'
  /usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `new'
  /usr/lib/ruby/1.8/mongrel.rb:285:in `run'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `new'
  /usr/lib/ruby/1.8/mongrel.rb:268:in `run'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
  /usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
  /usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'

Also available in: Atom PDF