completelynovel/epub — Issue #3: Undefined method 'type' while normalizing
Author: oliverbrooks
Created: 2012-01-24 09:31:31+00:00
State: open
Labels: bug

## Backtrace:

{undefined method `type' for nil:NilClass
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/gems/activesupport-3.1.3/lib/active_support/whiny_nil.rb:48:in `method_missing'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/manifest.rb:107:in `block in items'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/manifest.rb:262:in `block in nodes'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:239:in `block in each'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `upto'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/gems/nokogiri-1.5.0/lib/nokogiri/xml/node_set.rb:238:in `each'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/manifest.rb:261:in `nodes'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/manifest.rb:102:in `items'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/manifest.rb:35:in `normalize!'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/file.rb:112:in `normalize!'
/home/oli/Dev/valobox/valobox/engines/epub_processor/app/models/stream_file/epub_processing.rb:52:in `block in normalize_epub'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/file.rb:46:in `block in extract'
/home/oli/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
/home/oli/.rvm/gems/ruby-1.9.3-p0@valobox/bundler/gems/epub-7675d2b17d76/lib/epub/file.rb:44:in `extract'
/home/oli/Dev/valobox/valobox/engines/epub_processor/app/models/stream_file/epub_processing.rb:51:in `normalize_epub'
/home/oli/Dev/valobox/valobox/engines/epub_processor/app/models/stream_file/states.rb:126:in `block (2 levels) in '

## Details

Happened on books:
* 9781615423224 "Take Control of Using Lion"
* 9781615423217 "Take Control of Upgrading to Lion"