Skip to content

Commit ee4c8f7

Browse files
committed
Update client.mustache
1 parent 413371a commit ee4c8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/clients/go/template/client/client.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -1220,10 +1220,10 @@ func (client *{{appShortName}}Client) ReadChangesExecute(request SdkClientReadCh
12201220
req = req.ContinuationToken(*continuationToken)
12211221
}
12221222
requestBody := request.GetBody()
1223-
if requestBody.Type != "" {
1223+
if requestBody != nil && requestBody.Type != "" {
12241224
req = req.Type_(requestBody.Type)
12251225
}
1226-
if !requestBody.StartTime.IsZero() {
1226+
if requestBody != nil && !requestBody.StartTime.IsZero() {
12271227
req = req.StartTime(requestBody.StartTime)
12281228
}
12291229

0 commit comments

Comments
 (0)