Skip to content

Commit d5e5147

Browse files
Apply patch from mainline hash: 3fae6013c6
1 parent 4da4927 commit d5e5147

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/java.base/share/classes/jdk/internal/module/SystemModuleFinders.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ private boolean containsResource(String resourcePath) throws IOException {
430430

431431
@Override
432432
public Optional<URI> find(String name) throws IOException {
433+
Objects.requireNonNull(name);
433434
String resourcePath = "/" + module + "/" + name;
434435
if (containsResource(resourcePath)) {
435436
URI u = JNUA.create("jrt", resourcePath);

0 commit comments

Comments
 (0)