Commit aa6afa6
committed
fix: prevent nil pointer panic when OAuthManager interface contains nil
Go interface nil check fails when a typed nil pointer is assigned to an
interface - the interface itself is non-nil but contains a nil value.
This caused a panic when OAuth credentials weren't configured.
Fix by only assigning OAuthManager after confirming oauthMgr is not nil.1 parent 554e0fb commit aa6afa6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments