diff -r b98f60a6d231 -r e3f78fa30a36 app/controllers/activities_controller.rb
--- a/app/controllers/activities_controller.rb
+++ b/app/controllers/activities_controller.rb
@@ -44,6 +44,8 @@
     if !@institution_name.blank?
       events = events.select do |e|
         e.respond_to?(:event_author) and e.event_author and
+	  e.event_author.respond_to?(:ssamr_user_detail) and
+          !e.event_author.ssamr_user_detail.nil? and
           e.event_author.ssamr_user_detail.institution_name == @institution_name
       end
       if events.empty?
