If the `buildContainerImage` method is called without passing any arguments at all, the `args` object will be `null`. Attempting to access the properties of it in that case raises a `NullPointerException`. Fortunately, Groovy has a `?` operator that returns `null` when the named object is `null` and avoids accessing its properties. |
||
---|---|---|
.. | ||
buildContainerImage.groovy |