Skip to content

to_tree bug #13

@sunilkr

Description

@sunilkr

Exception trace.
Cannot attach the sample file here.
link: www.transportation.org/Documents/focus.ppt
(I do not own the presentation)

irb(main):015:0> ole
=> #<Ole::Storage io=#<File:focus.ppt> root=#<Dirent:"刀">>
irb(main):016:0> ole.root
=> #<Dirent:"刀">
irb(main):017:0> ole.root.to_tree
NoMethodError: undefined method `each' for nil:NilClass
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/storage/base.rb:835:in `each_child'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:143:in `block in to_tree'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:146:in `call'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:146:in `block (2 levels) in to_tree'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/storage/base.rb:835:in `each'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/storage/base.rb:835:in `each_child'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:143:in `block in to_tree'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:155:in `call'
    from /var/lib/gems/1.9.1/gems/ruby-ole-1.2.11.6/lib/ole/support.rb:155:in `to_tree'
    from (irb):17
    from /usr/bin/irb:12:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions