Is there an existing issue for this?
Current Behavior
|
session, err = store.New(s.request, name) |
|
session.name = name |
This doesn't check if the return from store.New is an error, and then prromptly panics with a nil deref if it is.
Expected Behavior
Error is returned, rather than panic
Steps To Reproduce
Use with a store implementation where New sometimes returns an error instead of a session.
Anything else?
No response
Is there an existing issue for this?
Current Behavior
sessions/sessions.go
Lines 139 to 140 in bb4cd60
This doesn't check if the return from store.New is an error, and then prromptly panics with a nil deref if it is.
Expected Behavior
Error is returned, rather than panic
Steps To Reproduce
Use with a store implementation where New sometimes returns an error instead of a session.
Anything else?
No response