Pistos/diaspora — Issue #5: Nil exception in photo stream
Author: Pistos
Created: 2011-10-31 17:08:09+00:00
State: open

https://diasp0ra.ca/people/3/photos

```
event=error error_class=ActionView::Template::Error error_message='undefined method `posts' for nil:NilClass' gc_ms=186 gc_collections=1 gc_bytes=1549457 orig_error_m
essage='undefined method `posts' for nil:NilClass'annotated_source=' 27: = render 'people/sub_header', :person => @person, :contact => @contact
28:
29: / hackity hack until we get a photo stream
30: - if (@posts && @posts.length > 0) || @stream.posts.length > 0
31: -if @post_type == :photos
32: = render 'photos/index', :photos => @posts
33: - else
' app_backtrace='app/views/people/show.html.haml:30:in `_app_views_people_show_html_haml___767170776_106027530_0';app/controllers/photos_controller.rb:34:in `index';l
ib/chrome_frame.rb:39:in `call''
```