We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b3e4f9 commit ecc9543Copy full SHA for ecc9543
google-apis-generator/lib/google/apis/generator/annotator.rb
@@ -112,7 +112,7 @@ def infer_method_name_for_rpc(method, pick_name = true)
112
parts = method.id.split('.')
113
parts.shift
114
verb = ActiveSupport::Inflector.underscore(parts.pop)
115
- match = method.request._ref.match(/(.*)(?i:request)/)
+ match = method.request._ref&.match(/(.*)(?i:request)/)
116
return nil if match.nil?
117
name = ActiveSupport::Inflector.underscore(match[1])
118
return nil unless name == verb || name.start_with?(verb + '_')
0 commit comments