We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c8740e commit edfa297Copy full SHA for edfa297
src/main/java/com/github/dockerjava/api/model/ContainerConfig.java
@@ -81,7 +81,11 @@ public class ContainerConfig {
81
82
@JsonIgnore
83
public ExposedPort[] getExposedPorts() {
84
- return exposedPorts.getExposedPorts();
+ if (exposedPorts == null) {
85
+ return new ExposedPort[0];
86
+ } else {
87
+ return exposedPorts.getExposedPorts();
88
+ }
89
}
90
91
public boolean isNetworkDisabled() {
0 commit comments