Commit 881996a
committed
xds: Detect negative ref count for xds client
If the refcount goes negative, then the next getObject() will return
null. This was noticed during code inspection when investigating a
NullPointerException in b/454396128, although it is unclear if this is
actually happening.1 parent a40d549 commit 881996a
File tree
2 files changed
+6
-2
lines changed- xds/src
- main/java/io/grpc/xds
- test/java/io/grpc/xds
2 files changed
+6
-2
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
205 | 209 | | |
206 | 210 | | |
207 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments