diff options
author | Xavier Coulon | 2016-11-29 14:42:08 +0000 |
---|---|---|
committer | Jeff Johnston | 2016-11-29 20:30:39 +0000 |
commit | 02a5165ad69bdf29daad24ed1a2be147633f7a61 (patch) | |
tree | ff9081000f1f38b96224348a85b19a14b11c4cb6 | |
parent | 5a0a154b51f8c83c24b2b9788371582f6adcb3bf (diff) | |
download | org.eclipse.linuxtools-02a5165ad69bdf29daad24ed1a2be147633f7a61.tar.gz org.eclipse.linuxtools-02a5165ad69bdf29daad24ed1a2be147633f7a61.tar.xz org.eclipse.linuxtools-02a5165ad69bdf29daad24ed1a2be147633f7a61.zip |
Bug 508026 - AssertionFailedException below ImageBuildDialog.createDialogArea
Making sure that no 'null' name is returned when calling
DockerConnectionManager#getConnectionNames()
Change-Id: I99bf5cc65ba6d5d41f4ea182092617a4896b51d9
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Reviewed-on: https://git.eclipse.org/r/85947
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r-- | containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/DockerConnectionManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/DockerConnectionManager.java b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/DockerConnectionManager.java index aed586beef..02c86077c6 100644 --- a/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/DockerConnectionManager.java +++ b/containers/org.eclipse.linuxtools.docker.core/src/org/eclipse/linuxtools/docker/core/DockerConnectionManager.java @@ -165,7 +165,11 @@ public class DockerConnectionManager { */ public List<String> getConnectionNames() { return Collections.unmodifiableList(getAllConnections().stream() - .map(c -> c.getName()).collect(Collectors.toList())); + .map(c -> c.getName()) + // making sure that no 'null' name is returned in the list of + // connection names. + .filter(n -> n != null) + .collect(Collectors.toList())); } public IDockerConnection findConnection(final String name) { |