Permalink
Browse files

Merge pull request #310 from rivsc/patch-2

Quick fix for "undefined method `identifier' for nil:NilClass" problem
  • Loading branch information...
2 parents 1b55d5f + 1f0a5da commit 7287809249cd6ab7b40c0e252b1c2f0393fe41fb @bradediger bradediger committed Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/prawn/document/snapshot.rb
@@ -53,7 +53,7 @@ def take_snapshot
:current_page => state.page.dictionary.deep_copy(share=[:Parent]),
:bounds => bounds.deep_copy,
:page_number => page_number,
- :page_kids => state.store.pages.data[:Kids].map{|kid| kid.identifier},
+ :page_kids => state.store.pages.data[:Kids].compact.map{|kid| kid.identifier},
:dests => names? && names.data[:Dests].deep_copy}
end

0 comments on commit 7287809

Please sign in to comment.