sandal/prawn — Issue #290: undefined method `identifier' for nil:NilClass
Author: medwezys
Created: 2011-10-22 19:14:55+00:00
State: open

I get this error while rendering a part of the document in `group` block

```ruby
undefined method `identifier' for nil:NilClass
prawn (1.0.0.rc1) lib/prawn/document/snapshot.rb:56:in `block in take_snapshot'
```
Some of the objects in state.store.pages.data[:Kids] array
(https://github.com/sandal/prawn/blob/master/lib/prawn/document/snapshot.rb#L56) ar nils. It only happens in a some situations when the text being rendered is at the end of the page, however I couldn't track down the code where the mentioned array gets a nil set to it. I also couldn't isolate the error enough to provide a simple test case (I am rendering documents form the user input and it happens only in some cases, depending on the input.
If you could point me to the code where this array is being initialized I could try to debug with the failing cases I have and provide some more info or a patch, thanks!