Skip to content

Commit bd16fc4

Browse files
committed
Merge pull request #39856 from yokotaso
* pr/39856: Fix possible NullPointerException from getPermission() Closes gh-39856
2 parents dcf9732 + 5b4bd61 commit bd16fc4

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/JarUrlConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public Object getContent() throws IOException {
172172

173173
@Override
174174
public Permission getPermission() throws IOException {
175-
return this.jarFileConnection.getPermission();
175+
return (this.jarFileConnection != null) ? this.jarFileConnection.getPermission() : null;
176176
}
177177

178178
@Override

0 commit comments

Comments
 (0)