templates/event_callback_helper.mustache in dropbox-sign-1.3.0 vs templates/event_callback_helper.mustache in dropbox-sign-1.4.0
- old
+ new
@@ -34,10 +34,10 @@
# @param [EventCallbackRequest] event_callback
# @return string
def self.get_callback_type(event_callback)
metadata = event_callback.event.event_metadata || EventCallbackRequestEventMetadata.new
- if metadata.reported_for_app_id.nil? || metadata.reported_for_app_id.empty?
+ if metadata.nil? || metadata.reported_for_app_id.nil? || metadata.reported_for_app_id.empty?
return EVENT_TYPE_ACCOUNT_CALLBACK
end
return EVENT_TYPE_APP_CALLBACK
end