Skip to content

Commit 88fb7be

Browse files
committed
handle case where boot.class.path is not set (i.e. java9)
1 parent aa675b3 commit 88fb7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

affinity/src/main/java/net/openhft/affinity/BootClassPath.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final boolean has(String binaryClassName) {
4747
private static Set<String> getResourcesOnBootClasspath() {
4848
final Logger logger = LoggerFactory.getLogger(BootClassPath.class);
4949
final Set<String> resources = new HashSet<>();
50-
final String bootClassPath = System.getProperty("sun.boot.class.path");
50+
final String bootClassPath = System.getProperty("sun.boot.class.path", "");
5151
logger.trace("Boot class-path is: {}", bootClassPath);
5252

5353
final String pathSeparator = System.getProperty("path.separator");

0 commit comments

Comments
 (0)