mirror of https://github.com/shred/acme4j
Make URL conversion null-safe
parent
f38002ca06
commit
f2cd592b2e
|
@ -497,7 +497,7 @@ public class DefaultConnection implements Connection {
|
|||
*/
|
||||
private static URL toURL(URI uri) {
|
||||
try {
|
||||
return uri.toURL();
|
||||
return uri != null ? uri.toURL() : null;
|
||||
} catch (MalformedURLException ex) {
|
||||
throw new AcmeProtocolException("Invalid URL: " + uri, ex);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue