Skip to content

Commit

Permalink
Merge pull request #7 from Bandwidth/hotfix/transfer-nil-check
Browse files Browse the repository at this point in the history
fixed transfer when sip uri or phone number is not set
  • Loading branch information
jmulford-bw authored Dec 16, 2020
2 parents 8e93b9a + a9803a0 commit 18bf5cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bandwidth.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'bandwidth-sdk'
s.version = '3.13.0'
s.version = '3.13.1'
s.summary = 'bandwidth'
s.description = 'Bandwidth\'s set of APIs'
s.authors = ['APIMatic SDK Generator']
Expand Down
12 changes: 8 additions & 4 deletions lib/bandwidth/voice_lib/bxml/verbs/transfer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ def embedded_xml(xml, property, type)
s.to_bxml(xml)
end
end
phone_numbers.each do |number|
embedded_xml(xml, number, PhoneNumber)
if not phone_numbers.nil?
phone_numbers.each do |number|
embedded_xml(xml, number, PhoneNumber)
end
end
sip_uris.each do |sip_uri|
embedded_xml(xml, sip_uri, SipUri)
if not sip_uris.nil?
sip_uris.each do |sip_uri|
embedded_xml(xml, sip_uri, SipUri)
end
end
end
end
Expand Down

0 comments on commit 18bf5cc

Please sign in to comment.