Skip to content

Commit

Permalink
fixup: fix NPE
Browse files Browse the repository at this point in the history
Signed-off-by: sutan <sutan@redhat.com>
  • Loading branch information
sunix authored and manusa committed Nov 15, 2021
1 parent 69f03be commit 6ba7797
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public static List<ImageConfiguration> initImageConfiguration(String apiVersion,

for (ImageConfiguration image : resolvedImages) {
BuildConfiguration buildConfiguration = image.getBuildConfiguration();
if (buildConfiguration.isDockerFileMode()) {
if (buildConfiguration != null && buildConfiguration.isDockerFileMode()) {
log.info("Using Dockerfile: %s", buildConfiguration.getDockerFile().getAbsolutePath());
}
}
Expand Down

0 comments on commit 6ba7797

Please sign in to comment.