diff --git a/app/services/post_alerter.rb b/app/services/post_alerter.rb
index 906417743..56c2fbe20 100644
--- a/app/services/post_alerter.rb
+++ b/app/services/post_alerter.rb
@@ -16,7 +16,7 @@ class PostAlerter
         user.id == post.user_id
       end.each do |user|
         if TopicUser.get(post.topic, user).try(:notification_level) == TopicUser.notification_levels[:tracking]
-          next unless post.reply_to_post_number || post.reply_to_post.user_id == user.id
+          next unless post.reply_to_post_number || post.reply_to_post.try(:user_id) == user.id
         end
         create_notification(user, Notification.types[:private_message], post)
       end