Commit f4b3872
committed
Fix DockerPrinter NPE when Label or Env pairs are null
DockerPrinter.visitLabel() and visitEnv() used for-each loops directly
on getPairs() which throws NPE when the list is null. Added null guards
matching the existing pattern used for other nullable list fields like
getFlags().1 parent 8abf885 commit f4b3872
1 file changed
Lines changed: 16 additions & 12 deletions
Lines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | | - | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
181 | 186 | | |
182 | | - | |
183 | 187 | | |
184 | 188 | | |
185 | 189 | | |
| |||
0 commit comments