Ticket #33 (closed defect: fixed)
Error in parse.rb opening url
| Reported by: | mcroeder | Owned by: | why |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.5 |
| Component: | lib/hpricot | Version: | 0.4 |
| Keywords: | parse.rb nil into string | Cc: |
Description
I'm getting an error in version 0.4.59 and 0.4.76 that I haven't seen in earlier (0.4) versions when parsing a url returned from open_uri:
open_uri = open(some_url) Hpricot(open_uri)
The stack trace is: (TypeError?) - cannot convert nil into String TRACE: c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:258:in `+' c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:258:in `parse' c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:171:in `build_node' c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:137:in `make' c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:137:in `map' c:/program files/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.59-mswin32/lib/hpricot/parse.rb:137:in `make'
For reference, this is the windows version.
