about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-28 19:11:36 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-28 19:11:36 +0100
commit4eba76711b4686ffc2faaf568e7491061ec35eb4 (patch)
tree95994be6033aa85ced470cc3dfc39ac18fdb1597 /app/services
parent27fc49d74546d689307e1e712e0b46ccce98867b (diff)
Adding backtracing to Salmon/Processing workers
Diffstat (limited to 'app/services')
-rw-r--r--app/services/update_remote_profile_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/update_remote_profile_service.rb b/app/services/update_remote_profile_service.rb
index 26ab84d75..56b25816f 100644
--- a/app/services/update_remote_profile_service.rb
+++ b/app/services/update_remote_profile_service.rb
@@ -5,6 +5,8 @@ class UpdateRemoteProfileService < BaseService
   DFRN_NS = 'http://purl.org/macgirvin/dfrn/1.0'
 
   def call(xml, account, resubscribe = false)
+    return if xml.nil?
+
     author_xml = xml.at_xpath('./xmlns:author') || xml.at_xpath('./dfrn:owner', dfrn: DFRN_NS)
     hub_link   = xml.at_xpath('./xmlns:link[@rel="hub"]')