Skip to content

Commit

Permalink
Merge pull request #39856 from yokotaso
Browse files Browse the repository at this point in the history
* pr/39856:
  Fix possible NullPointerException from getPermission()

Closes gh-39856
  • Loading branch information
philwebb committed May 2, 2024
2 parents dcf9732 + 5b4bd61 commit bd16fc4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -172,7 +172,7 @@ public Object getContent() throws IOException {

@Override
public Permission getPermission() throws IOException {
return this.jarFileConnection.getPermission();
return (this.jarFileConnection != null) ? this.jarFileConnection.getPermission() : null;
}

@Override
Expand Down

0 comments on commit bd16fc4

Please sign in to comment.