BrianLeishman / go-imap

Super Simple IMAP Client Library for Golang
MIT License
71 stars 24 forks source link

Fix bug where a panic would happen #5

Closed post04 closed 2 years ago

post04 commented 2 years ago

Hey, I just went ahead and got rid of this bug. The stacktrace is as follows.

panic: runtime error: index out of range [-1]

goroutine 140 [running]:
github.com/BrianLeishman/go-imap.(*Dialer).GetFolders.func1({0xf1f858, 0xf1f858, 0x0})
C:/Users/Administrator/go/pkg/mod/github.com/!brian!leishman/go-imap@v0.0.0-20211018214722-a869de640791/main.go:406 +0x305
BrianLeishman commented 2 years ago

Looks good to me, thank you!