mautrix / go

A Golang Matrix framework.

Home Page:https://maunium.net/go/mautrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.9.25 panic on Login()

rakshazi opened this issue · comments

Hi there,

I use following code to login:

		_, err := client.Login(&mautrix.ReqLogin{
			Type: "m.login.password",
			Identifier: mautrix.UserIdentifier{
				Type: mautrix.IdentifierTypeUser,
				User: username,
			},
			Password:         password,
			StoreCredentials: true,
		})

after upgrade to v0.9.25 it panics with following stack trace:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x79da10]

goroutine 1 [running]:
maunium.net/go/mautrix.(*Client).Login(0xc00020a2a0, 0xc0001c4540)
	/home/rakshazi/go/pkg/mod/maunium.net/go/mautrix@v0.9.25/client.go:697 +0x370
...