diff --git a/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java b/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java index 3c9c7753903f..65384412e5fe 100644 --- a/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java +++ b/buildpack/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/ExportedImageTar.java @@ -133,8 +133,7 @@ static LayerArchiveFactory create(ImageReference reference, Path tarFile) throws if (index != null) { return new IndexLayerArchiveFactory(tarFile, index); } - Assert.state(manifest != null, "'manifest' must not be null"); - return new ManifestLayerArchiveFactory(tarFile, manifest); + return new ManifestLayerArchiveFactory(manifest); } } @@ -270,7 +269,7 @@ private static class ManifestLayerArchiveFactory extends LayerArchiveFactory { private final Set layers; - ManifestLayerArchiveFactory(Path tarFile, ImageArchiveManifest manifest) { + ManifestLayerArchiveFactory(ImageArchiveManifest manifest) { this.layers = manifest.getEntries() .stream() .flatMap((entry) -> entry.getLayers().stream())