Commit c91e951
authored
Avoid NPE on informers (#1630)
I found out when working on a CloudBees proprietary feature that
`KubernetesCloud#readResolve` is not always called on deserialization.
I think this will not happen in OSS, but let's stay on the safe side and
initialize the field before using it.1 parent 9879072 commit c91e951
2 files changed
Lines changed: 13 additions & 5 deletions
File tree
- src/main/java/org/csanchez/jenkins/plugins/kubernetes
- watch
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | 1309 | | |
1313 | 1310 | | |
1314 | 1311 | | |
| |||
1321 | 1318 | | |
1322 | 1319 | | |
1323 | 1320 | | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1324 | 1330 | | |
1325 | 1331 | | |
1326 | 1332 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments