プロジェクト

全般

プロフィール

Defect #295

未完了

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

Toshiyuki Ando さんが約14年前に追加.

ステータス:
新規(New)
優先度:
通常(Normal)
担当者:
-
対象バージョン:
開始日:
2010/02/11
期日:
2010/02/12 (14年以上 遅れ)
進捗率:

0%

予定工数:

説明

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

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'

表示するデータがありません

他の形式にエクスポート: Atom PDF