Skip to content

Commit

Permalink
gapis/api/sync: Don't explode if GetTerminator returns a nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-clayton committed Aug 21, 2017
1 parent 0be3e3d commit 9068c48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gapis/api/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ func MutationCmdsFor(ctx context.Context, c *path.Capture, cmds []api.Cmd, id ap
if err != nil {
return nil, err
}
terminators = append(terminators, term)
if term != nil {
terminators = append(terminators, term)
}
} else {
terminators = append(terminators, transform.NewEarlyTerminator(api.ID()))
}
Expand Down

0 comments on commit 9068c48

Please sign in to comment.