Merge pull request #39856 from yokotaso
* pr/39856: Fix possible NullPointerException from getPermission() Closes gh-39856
This commit is contained in:
commit
bd16fc4d26
|
|
@ -172,7 +172,7 @@ final class JarUrlConnection extends java.net.JarURLConnection {
|
|||
|
||||
@Override
|
||||
public Permission getPermission() throws IOException {
|
||||
return this.jarFileConnection.getPermission();
|
||||
return (this.jarFileConnection != null) ? this.jarFileConnection.getPermission() : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue