Commit 9625a44
committed
Fix NPE in UnifiedHostGroupsIT by calling hasNext() before next()
The Dedupe iterator wrapping the Groups list only populates its current
element inside hasNext(). Calling next() without hasNext() returns null.
Co-authored-by: Isaac1 parent 2622f1b commit 9625a44
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
0 commit comments