Skip to content

Commit

Permalink
Avoid nil access
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Sep 30, 2013
1 parent 28666c7 commit cba7b8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/additional_information.rb
Expand Up @@ -394,6 +394,7 @@ def patinfo(model, session=@session)
old_link_format = {'pointer' => patinfo.pointer}
href = @lookandfeel._event_url(:resolve, old_link_format)
end
return nil unless model and klass
link = klass.new(:square_patinfo, model, @session, self)
link.href = href
link.set_attribute('title', @lookandfeel.lookup(:patinfo))
Expand Down

0 comments on commit cba7b8c

Please sign in to comment.