Commit f92d9e9b authored by Philip Schildkamp's avatar Philip Schildkamp

Fix <none>-tag nullpointer bug

parent 9e483753
......@@ -565,9 +565,9 @@ public class org_opentosca_nodetypes_DockerEngine_IA_Manage extends AbstractIASe
private String isImageAvailable(final String image, final DockerClient dockerClient) {
System.out.println("Searching available Images: ");
for (final Image availImage : dockerClient.listImagesCmd().exec()) {
if (availImage != null) {
if (availImage != null && availImage.getRepoTags() != null) {
for (final String tag : availImage.getRepoTags()) {
if (tag.startsWith(image)) {
if (tag != null && tag.startsWith(image)) {
return availImage.getId();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment