Skip to content

Commit

Permalink
Merge pull request #56 from docxplusgmoon/fix
Browse files Browse the repository at this point in the history
Fixed error out of index in array
  • Loading branch information
tiaguinho authored Jun 18, 2020
2 parents 8cc3c3e + 5a9e320 commit f6eb275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (wsdl *wsdlDefinitions) GetSoapActionFromWsdlOperation(operation string) st
if wsdl.Bindings[0] != nil {
for _, o := range wsdl.Bindings[0].Operations {
if o.Name == operation {
if o.SoapOperations[0] != nil {
if len(o.SoapOperations) > 0 && o.SoapOperations[0] != nil {
return o.SoapOperations[0].SoapAction
}
}
Expand Down

0 comments on commit f6eb275

Please sign in to comment.