zekroTJA / shinpuru

シンプル - Discord Bot with role selection, moderation, karma ranking, a starboard, code execution, raid alerting, backups, a web interface, twitch notifications and more!
https://shnp.de
MIT License
184 stars 37 forks source link

Twitch Notify: panic #445

Closed zekroTJA closed 6 months ago

zekroTJA commented 6 months ago

Type

Crash

Instance

Main Canary (shinpuru Canary#3479 / c.shnp.de)

Description

-

Steps to reproduce

-

Attachments

panic: runtime error: invalid memory address or nil pointer dereference
shinpuru-canary_1      | [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xacb541]
shinpuru-canary_1      |
shinpuru-canary_1      | goroutine 447 [running]:
shinpuru-canary_1      | github.com/zekroTJA/shinpuru/pkg/twitchnotify.(*NotifyWorker).Handle(0xc000366400)
shinpuru-canary_1      |        /build/pkg/twitchnotify/twitchnotify.go:331 +0x381
shinpuru-canary_1      | github.com/zekroTJA/shinpuru/internal/inits.InitScheduler.func6()
shinpuru-canary_1      |        /build/internal/inits/scheduler.go:81 +0x38
shinpuru-canary_1      | github.com/robfig/cron/v3.FuncJob.Run(0xc0007e27d0?)
shinpuru-canary_1      |        /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136 +0x1a
shinpuru-canary_1      | github.com/robfig/cron/v3.(*Cron).startJob.func1()
shinpuru-canary_1      |        /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:312 +0x6a
shinpuru-canary_1      | created by github.com/robfig/cron/v3.(*Cron).startJob
shinpuru-canary_1      |        /go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:310 +0xad