Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit f34e2d5

Browse files
committed
(Windows) fixed java.lang.NullPointerException
at sun.net.dns.ResolverConfigurationImpl.stringToList(ResolverConfigurationImpl.java:69) oracle/graal#4304
1 parent 00b8a14 commit f34e2d5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ graalvmNative {
6161
buildArgs.add('-H:+AddAllCharsets')
6262
buildArgs.add('--allow-incomplete-classpath')
6363
buildArgs.add('--enable-url-protocols=http,https')
64+
buildArgs.add('--initialize-at-run-time=sun.net.dns.ResolverConfigurationImpl')
6465
}
6566
}
6667
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"name":"sun.net.dns.ResolverConfigurationImpl",
4+
"fields":[
5+
{"name":"os_searchlist"},
6+
{"name":"os_nameservers"}
7+
]
8+
}
9+
]

0 commit comments

Comments
 (0)