undefined method `originator' for nil:NilClass #9

Closed
angelacode opened this Issue Jun 23, 2011 · 2 comments

Comments

Projects
None yet
1 participant
@angelacode

I'm not sure why this is passing a nil-value pfeed_item.

This is the last item in the table:

 #<PfeedItem id: 4, type: nil, originator_id: 26, originator_type: "User", participant_id: nil, participant_type: nil, data: {:action_string=>"gived account", :originator_identity=>"User(#26)"}, expiry: nil, created_at: "2011-06-23 16:59:03", updated_at: "2011-06-23 16:59:03">]

This is the error and the stack trace:

 undefined method `originator' for nil:NilClass 
 Extracted source (around line #1):

 1: <%= pfeed_item.guess_identification(pfeed_item.originator) -%>
 2:  <%= pfeed_item.data[:action_string] -%>
 3:  about <%= time_ago_in_words(pfeed_item.created_at) -%> ago  
@angelacode

This comment has been minimized.

Show comment
Hide comment
@angelacode

angelacode Jun 23, 2011

I checked, the current_user.pfeed_inbox does in fact generate a value so it should be passing an array to collections.

I checked, the current_user.pfeed_inbox does in fact generate a value so it should be passing an array to collections.

@angelacode

This comment has been minimized.

Show comment
Hide comment

solved it

@angelacode angelacode closed this Jun 23, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment