mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
avoid NPE in URL.set when file is null
This commit is contained in:
@ -103,7 +103,7 @@ public final class URL {
|
||||
this.file = file;
|
||||
this.ref = ref;
|
||||
|
||||
int q = file.lastIndexOf('?');
|
||||
int q = file == null ? -1 : file.lastIndexOf('?');
|
||||
if (q != -1) {
|
||||
this.query = file.substring(q + 1);
|
||||
this.path = file.substring(0, q);
|
||||
|
Reference in New Issue
Block a user