Skip to content

Commit d5c4d85

Browse files
committed
Add more nullability annotations to build-plugin/spring-boot-gradle-plugin
See gh-46587
1 parent 630fe66 commit d5c4d85

File tree

1 file changed

+1
-0
lines changed
  • build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling

1 file changed

+1
-0
lines changed

build-plugin/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootZipCopyAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ private void processFile(FileCopyDetails details) throws IOException {
287287
if (BootZipCopyAction.this.layerResolver != null) {
288288
Layer layer = BootZipCopyAction.this.layerResolver.getLayer(details);
289289
Assert.state(this.layerIndex != null, "'layerIndex' must not be null");
290+
Assert.state(layer != null, "'layer' must not be null");
290291
this.layerIndex.add(layer, name);
291292
}
292293
}

0 commit comments

Comments
 (0)