Skip to content

Commit

Permalink
Fixed bug with segfault when client credentials are nil
Browse files Browse the repository at this point in the history
  • Loading branch information
null93 committed Jul 2, 2024
1 parent f6b0edc commit a500675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
)

func ClientLogin(session *credentials.Session) error {
if session.ClientCredentials.IsExpired() {
if session.ClientCredentials == nil || session.ClientCredentials.IsExpired() {
if err := session.RegisterClient(); err != nil {
return err
}
Expand Down

0 comments on commit a500675

Please sign in to comment.