Commit 9fd613f
committed
fix: prevent panic when store.New returns nil session with error
Registry.Get panics with a nil pointer dereference when store.New
returns a nil session and a non-nil error. The code unconditionally
accesses session.name and session.store without checking for nil.
Add nil checks to prevent the panic and return the error instead.
Fixes #2881 parent bb4cd60 commit 9fd613f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| |||
0 commit comments