#29 ✓wontfix
delineate

template_enviroment.rb: _output() choking on nil input

Reported by delineate | May 8th, 2008 @ 03:09 PM | in Hobo 0.8

I'm just trying to view standard pages of my models.
See attached stack trace.
Seems a nil is getting passed to concat in _output() from I have no idea where. Perhaps nil isn't supposed to be passed in, but the following one-liner patch seems to fix it for me.

Index: lib/hobo/dryml/template_environment.rb

--- lib/hobo/dryml/template_environment.rb (revision 1) +++ lib/hobo/dryml/template_environment.rb (working copy) @@ -212,7 +212,7 @@

 def _output(s)
  • @_erb_output.concat(s)
  • @_erb_output.concat(s.nil? ? '' : s) end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Tags

Pages